Skip to content

Commit

Permalink
fix char regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Nsidorenco committed Sep 8, 2024
1 parent cd7befd commit 9ad957f
Show file tree
Hide file tree
Showing 6 changed files with 17,909 additions and 17,879 deletions.
2 changes: 1 addition & 1 deletion fsharp/grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -1649,7 +1649,7 @@ module.exports = grammar({
char: (_) =>
prec(
-1,
/'([^\n\t\r\u0008\a\f\v\\]|\\["\'ntbrafv]|\\[0-9]{3}|\\u[0-9a-fA-F]{4})*'B?/,
/'([^\n\t\r\u0008\a\f\v\\]|\\["\'ntbrafv]|\\[0-9]{3}|\\u[0-9a-fA-F]{4}|(\\\\))?'B?/,
),

format_string_eval: ($) =>
Expand Down
2 changes: 1 addition & 1 deletion fsharp/src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -6857,7 +6857,7 @@
"value": -1,
"content": {
"type": "PATTERN",
"value": "'([^\\n\\t\\r\\u0008\\a\\f\\v\\\\]|\\\\[\"\\'ntbrafv]|\\\\[0-9]{3}|\\\\u[0-9a-fA-F]{4})*'B?"
"value": "'([^\\n\\t\\r\\u0008\\a\\f\\v\\\\]|\\\\[\"\\'ntbrafv]|\\\\[0-9]{3}|\\\\u[0-9a-fA-F]{4}|(\\\\\\\\))?'B?"
}
},
"format_string_eval": {
Expand Down
Loading

0 comments on commit 9ad957f

Please sign in to comment.