Add block comments
This commit is contained in:
parent
6d3dd1c8cb
commit
eec21c84da
5 changed files with 2347 additions and 1744 deletions
|
|
@ -12,6 +12,7 @@ module.exports = grammar({
|
|||
extras: ($) => [
|
||||
/\s+/,
|
||||
$.line_comment,
|
||||
$.block_comment,
|
||||
],
|
||||
|
||||
rules: {
|
||||
|
|
@ -24,6 +25,8 @@ module.exports = grammar({
|
|||
|
||||
line_comment: (_) => seq("//", /.*/),
|
||||
|
||||
block_comment: (_) => seq("/*", /[^*]*\*+([^/*][^*]*\*+)*/, '/'),
|
||||
|
||||
// Definitions {{{
|
||||
|
||||
assignment: ($) => seq(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue