Skip to content

Commit

Permalink
Scheme: Added support for high Unicode characters (#2693)
Browse files Browse the repository at this point in the history
  • Loading branch information
RunDevelopment committed Jan 3, 2021
1 parent cf28d1b commit 0e61a7e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/prism-scheme.js
Expand Up @@ -15,7 +15,7 @@
greedy: true
},
'character': {
pattern: /#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|\S)/,
pattern: /#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,
greedy: true,
alias: 'string'
},
Expand Down
2 changes: 1 addition & 1 deletion components/prism-scheme.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion tests/languages/scheme/character_feature.test
Expand Up @@ -14,6 +14,7 @@
#\x10FFFF
#\λ
#\)
#\💩

----------------------------------------------------

Expand Down Expand Up @@ -43,7 +44,8 @@
["character", "#\\u0041"],
["character", "#\\x10FFFF"],
["character", "#\\λ"],
["character", "#\\)"]
["character", "#\\)"],
["character", "#\\💩"]
]

----------------------------------------------------
Expand Down

0 comments on commit 0e61a7e

Please sign in to comment.