Skip to content

Commit

Permalink
Hoon: Fixed mixed-case aura tokenization (#3002)
Browse files Browse the repository at this point in the history
  • Loading branch information
matildepark committed Jul 19, 2021
1 parent 212e0ef commit 9c8911b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions components/prism-hoon.js
Expand Up @@ -4,13 +4,13 @@ Prism.languages.hoon = {
pattern: /::.*/,
greedy: true
},
'function': /(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,
'class-name': [
{
pattern: /@(?:[A-Za-z0-9-]*[A-Za-z0-9])?/,
pattern: /@(?:[A-Za-z0-9-]*[A-Za-z0-9])?/
},
/\*/
],
'function': /(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,
'string': {
pattern: /"[^"]*"|'[^']*'/,
greedy: true
Expand Down
2 changes: 1 addition & 1 deletion components/prism-hoon.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions tests/languages/hoon/comments_and_leaves.test
Expand Up @@ -31,8 +31,7 @@
" [",
["function", "now"],
"=",
["class-name", "@"],
["function", "da"],
["class-name", "@da"],
["function", "ovo"],
"=",
["class-name", "*"],
Expand Down
4 changes: 1 addition & 3 deletions tests/languages/hoon/nested_strings.test
Expand Up @@ -48,9 +48,7 @@ c
["keyword", "|="],
["function", "c"],
"=",
["class-name", "@"],
["function", "t"],
"D\r\n",
["class-name", "@tD"],

["keyword", "?:"],
" &((",
Expand Down

0 comments on commit 9c8911b

Please sign in to comment.