de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/octave/octave.js
Function tokenBase
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function tokenBase(stream, state) {
// whitespaces
if (stream.eatSpace()) return null;
// Handle one line Comments
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
if (m) { return m[1] ? 'string' : "string error"; }
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
if (stream.match(singleDelimiters) || stream.match(doubleDelimiters) || stream.match(tripleDelimiters)) { return null; };
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
if (stream.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/)) { return 'number'; };
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
if (stream.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/)) { return 'number'; };
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
if (stream.match(identifiers)) { return 'variable'; } ;
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return null;
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
if (stream.match(wordRegexp(['nan','NaN','inf','Inf']))) { return 'number'; };
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return 'error';
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
if (stream.match(builtins)) { return 'builtin'; } ;
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
if (stream.match(keywords)) { return 'keyword'; } ;
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
if (stream.match(singleOperators) || stream.match(doubleOperators)) { return 'operator'; };
- Create a ticketCreate a ticket