Skip to content
Permalink
Browse files
Nim: Fixed backtick identifier (#3118)
  • Loading branch information
RunDevelopment committed Oct 5, 2021
1 parent 15cb3b7 commit 75331beae314321ea22c5d2eb79dace86ce8905e
Showing with 17 additions and 2 deletions.
  1. +2 −1 components/prism-nim.js
  2. +1 −1 components/prism-nim.min.js
  3. +14 −0 tests/languages/nim/identifier_feature.test
@@ -16,8 +16,9 @@ Prism.languages.nim = {
}
},
// We don't want to highlight operators inside backticks
'ignore': {
'identifier': {
pattern: /`[^`\r\n]+`/,
greedy: true,
inside: {
'punctuation': /`/
}

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

@@ -0,0 +1,14 @@
var `var` = 42

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

[
["keyword", "var"],
["identifier", [
["punctuation", "`"],
"var",
["punctuation", "`"]
]],
["operator", "="],
["number", "42"]
]

0 comments on commit 75331be

Please sign in to comment.