|
@@ -55,12 +55,12 @@ export function CodeEditorMode (CodeMirror) {
|
|
hooks = parserConfig.hooks || {},
|
|
hooks = parserConfig.hooks || {},
|
|
multiLineStrings = parserConfig.multiLineStrings,
|
|
multiLineStrings = parserConfig.multiLineStrings,
|
|
indentStatements = false,
|
|
indentStatements = false,
|
|
- namespaceSeparator = /\./,
|
|
|
|
|
|
+ namespaceSeparator = null,
|
|
isPunctuationChar = /[\[\]{}\(\),;\:\n]/,
|
|
isPunctuationChar = /[\[\]{}\(\),;\:\n]/,
|
|
numberStart = /[\d\.]/,
|
|
numberStart = /[\d\.]/,
|
|
number = /^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)/i,
|
|
number = /^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)/i,
|
|
isOperatorChar = /[+\-*%=<>!\/]/,
|
|
isOperatorChar = /[+\-*%=<>!\/]/,
|
|
- isIdentifierChar = /[a-zA-Z_][a-zA-Z0-9_]*/,
|
|
|
|
|
|
+ isIdentifierChar = /[a-zA-Z0-9_]/,
|
|
// An optional function that takes a {string} token and returns true if it
|
|
// An optional function that takes a {string} token and returns true if it
|
|
// should be treated as a builtin.
|
|
// should be treated as a builtin.
|
|
isReservedIdentifier = parserConfig.isReservedIdentifier || false;
|
|
isReservedIdentifier = parserConfig.isReservedIdentifier || false;
|