Skip to content

Commit

Permalink
Merge pull request #404 from Mitcheljager/fix/include-special-characters
Browse files Browse the repository at this point in the history
fix: Include special characters in syntax highlighting
  • Loading branch information
Mitcheljager authored Feb 7, 2024
2 parents db26477 + 8c7f63f commit 0f03716
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/src/lib/OWLanguageLegacy.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const punc = ":;,.(){}[]+-\\*"
const octal = /^\-?0o[0-7][0-7_]*/
const hexadecimal = /^\-?0x[\dA-Fa-f][\dA-Fa-f_]*(?:(?:\.[\dA-Fa-f][\dA-Fa-f_]*)?[Pp]\-?\d[\d_]*)?/
const decimal = /^\-?\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee]\-?\d[\d_]*)?/
const identifier = /^\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1/
const identifier = /^\$\d+|(`?)[\p{L}][_\p{L}$0-9]*\1/u
const actionsValuesIdentifier = /^\s*(?=[A-Z])\b[A-Z][\w\s-]*(?!:)/g
const phraseIdentifier = /^\s*(?=[A-Z]).+?(?= [+\-*%=|&<>~^?!]|[\(\)\{\}:;,./\n\[\]]|\s==)/
const customKeywords = /(?<!\w)@(?:else if|\w+)/
Expand Down

0 comments on commit 0f03716

Please sign in to comment.