Skip to content

Commit

Permalink
fix: Include special characters in syntax highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitcheljager committed Feb 7, 2024
1 parent db26477 commit c352703
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+|(`?)[_A-Za-zÀ-ÖØ-öø-ÿ][_A-Za-zÀ-ÖØ-öø-ÿ$0-9]*\1/
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 c352703

Please sign in to comment.