aboutsummaryrefslogtreecommitdiff
path: root/js/prettify/lang-tex.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/prettify/lang-tex.js')
-rw-r--r--js/prettify/lang-tex.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/prettify/lang-tex.js b/js/prettify/lang-tex.js
new file mode 100644
index 0000000..ce96fbb
--- /dev/null
+++ b/js/prettify/lang-tex.js
@@ -0,0 +1 @@
PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r Â\xa0"],["com",/^%[^\n\r]*/,null,"%"]],[["kwd",/^\\[@-Za-z]+/],["kwd",/^\\./],["typ",/^[$&]/],["lit",/[+-]?(?:\.\d+|\d+(?:\.\d*)?)(cm|em|ex|in|pc|pt|bp|mm)/i],["pun",/^[()=[\]{}]+/]]),["latex","tex"]);