highlightjs / highlightjs-func

Highlight.js grammar for FunC
MIT License
5 stars 3 forks source link

Lookbehind doesn't work in Safari #5

Open ingria opened 1 year ago

ingria commented 1 year ago

Safari doesn't understand this part: (?<!_) and breaks.

https://github.com/highlightjs/highlightjs-func/blob/2ed023ee42c2f891e923ffc5a53f944dc6098c73/src/languages/func.js#L16

https://caniuse.com/js-regexp-lookbehind

joshgoebel commented 1 year ago

Confirm. We don't use it in any of the core grammars [for this reason] and won't until some time after Safari finally supports it - which I assume will happen eventually. 3rd party grammars are of course free to do what they will.

Hiyorimi commented 1 year ago

Looking for help from @sobolevn

sobolevn commented 1 year ago

PRs are welcome!