Stackedit/public/res/libs/prism-latex.js
2014-03-16 02:13:42 +00:00

12 lines
309 B
JavaScript

Prism.languages.latex = {
// A tex command e.g. \foo
'keyword': /\\(?:[^a-zA-Z]|[a-zA-Z]+)/g,
// Curly and square braces
'lparen': /[[({]/g,
// Curly and square braces
'rparen': /[\])}]/g,
// A comment. Tex comments start with % and go to
// the end of the line
'comment': /%.*/g,
};