Skip to content

Commit

Permalink
Clojure: Added char token (#3188)
Browse files Browse the repository at this point in the history
  • Loading branch information
RunDevelopment committed Nov 22, 2021
1 parent 4cebf34 commit 1c88c7d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
13 changes: 5 additions & 8 deletions components/prism-clojure.js
Expand Up @@ -4,14 +4,11 @@ Prism.languages.clojure = {
pattern: /;.*/,
greedy: true
},
'string': [
{
pattern: /"(?:[^"\\]|\\.)*"/,
greedy: true
},
// characters
/\\\w+/
],
'string': {
pattern: /"(?:[^"\\]|\\.)*"/,
greedy: true
},
'char': /\\\w+/,
'symbol': {
pattern: /(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,
lookbehind: true
Expand Down
2 changes: 1 addition & 1 deletion components/prism-clojure.min.js

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

2 changes: 1 addition & 1 deletion tests/languages/clojure/string_feature.test
Expand Up @@ -10,7 +10,7 @@ string"
["string", "\"\""],
["string", "\"Fo\\\"obar\""],
["string", "\"multi-line\r\nstring\""],
["string", "\\NewLine"]
["char", "\\NewLine"]
]

----------------------------------------------------
Expand Down

0 comments on commit 1c88c7d

Please sign in to comment.