Skip to content

Commit 735ed37

Browse files
grzegorzmazurmarijnh
authored andcommitted
[yacas mode] Tokenize '#' as an operator
(see grzegorzmazur/yacas#231)
1 parent f62d2e0 commit 735ed37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mode/yacas/yacas.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ CodeMirror.defineMode('yacas', function(_config, _parserConfig) {
125125
}
126126

127127
// operators; note that operators like @@ or /; are matched separately for each symbol.
128-
if (stream.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%)/, true, false)) {
128+
if (stream.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%|#)/, true, false)) {
129129
return 'operator';
130130
}
131131

0 commit comments

Comments
 (0)