Skip to content
Permalink
Browse files
Clojure: Added char token (#3188)
  • Loading branch information
RunDevelopment committed Nov 22, 2021
1 parent 4cebf34 commit 1c88c7dae17b9af164e610f20ebfc478df83932b
Showing with 7 additions and 10 deletions.
  1. +5 −8 components/prism-clojure.js
  2. +1 −1 components/prism-clojure.min.js
  3. +1 −1 tests/languages/clojure/string_feature.test
@@ -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

Some generated files are not rendered by default. Learn more.

@@ -10,7 +10,7 @@ string"
["string", "\"\""],
["string", "\"Fo\\\"obar\""],
["string", "\"multi-line\r\nstring\""],
["string", "\\NewLine"]
["char", "\\NewLine"]
]

----------------------------------------------------

0 comments on commit 1c88c7d

Please sign in to comment.