Changes
2 changed files (+10/-4)
-
-
@@ -232,13 +232,14 @@ boolean: $ => choice('true', 'false'),character: $ => /'(\S+|\s)'/, integer: $ => choice(/[1-9]\d*|0[0-7]*/, /0[xX][A-Fa-f0-9]+/), null: $ => 'null', real: $ => /\d+(\.\d+)?([eE][+-]?\d+)?/, real: $ => /\d+(\.\d+)?([eE][+-]?\d+)?f?/, regex: $ => /\/([^\\\/\n]|\\[\\\/A-z0|\[\]^$?.(){}+\-*])+\/[gmxsu]*/, string: $ => seq( '"', repeat(choice(/([^"%]+|\\")/, $.string_formatter, /%[^$#0\- +'I\d.hlqLjzZtdiouxXeEfFgGaAcsCSpnm%]/)), repeat(choice(/[^"%\\]+/, $.escape_sequence, $.string_formatter, /%[^$#0\- +'I\d.hlqLjzZtdiouxXeEfFgGaAcsCSpnm%]/)), '"' ), escape_sequence: $ => /\\([abefnrtv\'"?]|[0-7]{3}|[xX][A-Fa-f0-9]{2}|[uU][A-Fa-f0-9]{4,8})/, string_formatter: $ => /%\$?[#0\- +'I]?\d*(\.\d+)?(hh?|ll?|q|L|j|z|Z|t)?[diouxXeEfFgGaAcsCSpnm%]/, template_string: $ => seq( '@"',
-
@@ -757,7 +758,9 @@ 'throw', $._expression, ';'), yield_statement: $ => seq( 'yield', 'return', $._expression, ';' 'yield', optional(seq('return', $._expression)), ';' ), switch_statement: $ => seq(
-
-
-
@@ -29,7 +29,10 @@ (null) @constant.builtin(real) @number (regex) @constant (string) @string (string_formatter) @string.special [ (escape_sequence) (string_formatter) ] @string.special (template_string) @string (template_string_expression) @string.special (verbatim_string) @string
-