Skip to content

Commit

Permalink
Tremor: Use standard regex token (#3257)
Browse files Browse the repository at this point in the history
  • Loading branch information
RunDevelopment committed Dec 10, 2021
1 parent 1e6dcb5 commit c56e4bf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion components/prism-tremor.js
Expand Up @@ -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': {
Expand Down
2 changes: 1 addition & 1 deletion components/prism-tremor.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/tremor/extractor_feature.test
Expand Up @@ -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.