Add block comments

This commit is contained in:
Bruno BELANYI 2024-04-08 08:48:10 +01:00
parent 6d3dd1c8cb
commit eec21c84da
5 changed files with 2347 additions and 1744 deletions

View file

@ -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(