Skip to content

Commit d32b169

Browse files
committed
Fix comment name regex
1 parent 4a917b5 commit d32b169

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/highlight-fram.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ hljs.registerLanguage("fram", function (hljs) {
1111
});
1212
}
1313

14-
const COMMENT_NAME = "([a-zA-Z<>&\\$\\?!@\\^\\+\\-~\\*%;,=|:\\.\\/#]*)";
14+
const COMMENT_NAME = "([\\w'<>&$?!@^+\\-~*%;,=|:./#]*)";
1515

1616
return {
1717
keywords: {
@@ -28,7 +28,7 @@ hljs.registerLanguage("fram", function (hljs) {
2828
MATCH_BEGIN_END(hljs.COMMENT("{#" + COMMENT_NAME, COMMENT_NAME + "#}")),
2929
{
3030
className: "type",
31-
begin: "\\b[A-Z]\\w*",
31+
begin: "\\b[A-Z][\\w']*",
3232
},
3333
{
3434
className: "number",

0 commit comments

Comments
 (0)