Skip to content
Permalink
Browse files
Tremor: Use standard regex token (#3257)
  • Loading branch information
RunDevelopment committed Dec 10, 2021
1 parent 1e6dcb5 commit c56e4bf5e25131462872d71321e521d2a4033b3a
Showing with 7 additions and 3 deletions.
  1. +5 −1 components/prism-tremor.js
  2. +1 −1 components/prism-tremor.min.js
  3. +1 −1 tests/languages/tremor/extractor_feature.test
@@ -10,8 +10,12 @@
pattern: /\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,
greedy: true,
inside: {
'regex': {
pattern: /(^re)\|[\s\S]+/,
lookbehind: true
},
'function': /^\w+/,
'regex': /\|[\s\S]+/,
'value': /\|[\s\S]+/
}
},
'identifier': {

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

@@ -10,6 +10,6 @@ datetime|%Y-%m-%d %H:%M|
]],
["extractor", [
["function", "datetime"],
["regex", "|%Y-%m-%d %H:%M|"]
["value", "|%Y-%m-%d %H:%M|"]
]]
]

0 comments on commit c56e4bf

Please sign in to comment.