Fix line comments syntax
Don't write parsers after midnight kids. For the explanation: I mixed up the syntax bits between Blueprint and textual protocol buffers...
This commit is contained in:
parent
7bacff2471
commit
6d3dd1c8cb
5 changed files with 770 additions and 753 deletions
|
|
@ -11,7 +11,7 @@ module.exports = grammar({
|
|||
|
||||
extras: ($) => [
|
||||
/\s+/,
|
||||
$.comment,
|
||||
$.line_comment,
|
||||
],
|
||||
|
||||
rules: {
|
||||
|
|
@ -22,7 +22,7 @@ module.exports = grammar({
|
|||
$.module,
|
||||
),
|
||||
|
||||
comment: (_) => seq("#", /.*/),
|
||||
line_comment: (_) => seq("//", /.*/),
|
||||
|
||||
// Definitions {{{
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue