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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 2 deletions
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

Lines changed: 1 addition & 3 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy