Skip to content

Commit 6a215fe

Browse files
authoredMar 21, 2022
CFScript: Simplified operator regex (#3396)
1 parent 10ae6da commit 6a215fe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎components/prism-cfscript.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Prism.languages.cfscript = Prism.languages.extend('clike', {
1919
],
2020
'keyword': /\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,
2121
'operator': [
22-
/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,
22+
/\+\+|--|&&|\|\||::|=>|[!=]==|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|:/,
2323
/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/
2424
],
2525
'scope': {

‎components/prism-cfscript.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.