Skip to content

Commit 9c8911b

Browse files
authored
Hoon: Fixed mixed-case aura tokenization (#3002)
1 parent 212e0ef commit 9c8911b

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

components/prism-hoon.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ Prism.languages.hoon = {
44
pattern: /::.*/,
55
greedy: true
66
},
7-
'function': /(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,
87
'class-name': [
98
{
10-
pattern: /@(?:[A-Za-z0-9-]*[A-Za-z0-9])?/,
9+
pattern: /@(?:[A-Za-z0-9-]*[A-Za-z0-9])?/
1110
},
1211
/\*/
1312
],
13+
'function': /(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,
1414
'string': {
1515
pattern: /"[^"]*"|'[^']*'/,
1616
greedy: true

components/prism-hoon.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/languages/hoon/comments_and_leaves.test

+1-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@
3131
" [",
3232
["function", "now"],
3333
"=",
34-
["class-name", "@"],
35-
["function", "da"],
34+
["class-name", "@da"],
3635
["function", "ovo"],
3736
"=",
3837
["class-name", "*"],

tests/languages/hoon/nested_strings.test

+1-3
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ c
4848
["keyword", "|="],
4949
["function", "c"],
5050
"=",
51-
["class-name", "@"],
52-
["function", "t"],
53-
"D\r\n",
51+
["class-name", "@tD"],
5452

5553
["keyword", "?:"],
5654
" &((",

0 commit comments

Comments
 (0)