Skip to content

Commit

Permalink
[yacas mode] Tokenize '#' as an operator
Browse files Browse the repository at this point in the history
  • Loading branch information
grzegorzmazur authored and marijnh committed Jun 10, 2017
1 parent f62d2e0 commit 735ed37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mode/yacas/yacas.js
Expand Up @@ -125,7 +125,7 @@ CodeMirror.defineMode('yacas', function(_config, _parserConfig) {
}

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

Expand Down

0 comments on commit 735ed37

Please sign in to comment.