Skip to content

Commit

Permalink
Name intermediate rule for ocaml-tree-sitter
Browse files Browse the repository at this point in the history
  • Loading branch information
aryx authored Mar 22, 2022
1 parent 0fa917a commit e9e6937
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -845,11 +845,12 @@ module.exports = grammar({
interpreted_string_literal: $ => seq(
'"',
repeat(choice(
token.immediate(prec(1, /[^"\n\\]+/)),
$._interpreted_string_literal_basic_content,
$.escape_sequence
)),
'"'
),
_interpreted_string_literal_basic_content: $ => token.immediate(prec(1, /[^"\n\\]+/)),

escape_sequence: $ => token.immediate(seq(
'\\',
Expand Down

0 comments on commit e9e6937

Please sign in to comment.