flix / highlightjs-flix

Apache License 2.0
1 stars 3 forks source link

fix: highlight enum keyword #42

Closed jaschdoc closed 11 months ago

jaschdoc commented 11 months ago

Fixes enum highlighting and corrects typo of deafult -> default. Also updates hightlight.js to latest version.

The issue was both the syntax of the keywords in beginKeywords (should be separated by space, not |), and the end regex which had a \( expression outside the [] matcher. Just leaving this here for future reference.

Related to https://github.com/flix/book/pull/104

Fixes #28

magnus-madsen commented 11 months ago

Thanks!