Skip to content

Commit accb158

Browse files
committed
Make string contents node visible
1 parent 3251f8c commit accb158

File tree

764 files changed

+17099
-8074
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

764 files changed

+17099
-8074
lines changed

grammar.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4234,28 +4234,28 @@ const rules = {
42344234
quoted_string: $ => seq(
42354235
'"',
42364236
repeat(choice(
4237-
$._quoted_string_item,
4238-
$._string_escape_seq
4237+
$.quoted_string_item,
4238+
$.string_escape_seq
42394239
)),
42404240
'"'
42414241
),
42424242

42434243
triple_quoted_string: $ => seq(
42444244
'"""',
42454245
repeat(choice(
4246-
$._triple_quoted_string_item,
4246+
$.triple_quoted_string_item,
42474247
token(prec(1, seq('"', /[^"]/))),
42484248
token(prec(1, seq('""', /[^"]/))),
4249-
$._string_escape_seq
4249+
$.string_escape_seq
42504250
)),
42514251
'"""'
42524252
),
42534253

4254-
_quoted_string_item: $ => token.immediate(prec(1, /[^\\"\n]+/)), // any_ASCII_character except \ or newline or "
4254+
quoted_string_item: $ => token.immediate(prec(1, /[^\\"\n]+/)), // any_ASCII_character except \ or newline or "
42554255

4256-
_triple_quoted_string_item: $ => token.immediate(prec(1, /[^\\"]+/)), // any_ASCII_character except \
4256+
triple_quoted_string_item: $ => token.immediate(prec(1, /[^\\"]+/)), // any_ASCII_character except \
42574257

4258-
_string_escape_seq: $ => token(prec(1, seq(
4258+
string_escape_seq: $ => token(prec(1, seq(
42594259
'\\',
42604260
choice(
42614261
/[^x0-7]/, // \any_ASCII_character (exclude 'x' and '0-7' since those would be matched by following cases)
@@ -4643,7 +4643,7 @@ const rules = {
46434643
line_compiler_directive: $ => seq(
46444644
directive('line'),
46454645
$.unsigned_number,
4646-
alias($.quoted_string, $.filename),
4646+
$.quoted_string,
46474647
alias(token(/[0-2]/), $.level),
46484648
token.immediate(/\r?\n/),
46494649
),

src/grammar.json

Lines changed: 9 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/node-types.json

Lines changed: 44 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)