/* In[23] and Out[34] */

/***/

// Based on code by Patrick Scheibe (halirutan)

// Catch Slots (#, ##, #3, ##9 and the V10 named slots #name). I have never seen someone using more than one digit after #, so we match

// CodeMirror, copyright (c) by Marijn Haverbeke and others

// CommonJS

// Distributed under an MIT license: https://codemirror.net/5/LICENSE

// Literals like variables, keywords, functions

// Match all braces separately

// Mathematica mode copyright (c) 2015 by Calin Barbat

// Named characters in Mathematica, like \[Gamma].

// Numbers in a baseform

// See: https://github.com/halirutan/Mathematica-Source-Highlighting/tree/master/src/lang-mma.js

// comment

// everything else is an error

// get next character

// go back one character

// look for numbers

// message

// only one.

// operators. Note that operators like @@ or /; are matched separately for each symbol.

// string

// the match is then forwarded to the mma-patterns tokenizer.

// this makes a look-ahead match for something like variable:{_Integer}

// usage

// used pattern building blocks
