diff options
author | Eric Bidelman | 2012-04-08 17:50:49 -0700 |
---|---|---|
committer | Eric Bidelman | 2012-04-08 17:50:49 -0700 |
commit | db92c5e0c26ba0bb545993bb48533d39f1934b95 (patch) | |
tree | ccdf3b9ee4c54923fadaf4fe43979b2997e27342 /js/prettify/lang-sql.js | |
parent | 1a10348622e92803cc9a90ec4369bb6974cc5329 (diff) | |
download | io-slides-remote-db92c5e0c26ba0bb545993bb48533d39f1934b95.tar.gz |
Adding prettyprint. Clean up old files
Diffstat (limited to 'js/prettify/lang-sql.js')
-rw-r--r-- | js/prettify/lang-sql.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/js/prettify/lang-sql.js b/js/prettify/lang-sql.js new file mode 100644 index 0000000..da705b0 --- /dev/null +++ b/js/prettify/lang-sql.js | |||
@@ -0,0 +1,2 @@ | |||
1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r Â\xa0"],["str",/^(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,null,"\"'"]],[["com",/^(?:--[^\n\r]*|\/\*[\S\s]*?(?:\*\/|$))/],["kwd",/^(?:add|all|alter|and|any|as|asc|authorization|backup|begin|between|break|browse|bulk|by|cascade|case|check|checkpoint|close|clustered|coalesce|collate|column|commit|compute|constraint|contains|containstable|continue|convert|create|cross|current|current_date|current_time|current_timestamp|current_user|cursor|database|dbcc|deallocate|declare|default|delete|deny|desc|disk|distinct|distributed|double|drop|dummy|dump|else|end|errlvl|escape|except|exec|execute|exists|exit|fetch|file|fillfactor|for|foreign|freetext|freetexttable|from|full|function|goto|grant|group|having|holdlock|identity|identitycol|identity_insert|if|in|index|inner|insert|intersect|into|is|join|key|kill|left|like|lineno|load|match|merge|national|nocheck|nonclustered|not|null|nullif|of|off|offsets|on|open|opendatasource|openquery|openrowset|openxml|option|or|order|outer|over|percent|plan|precision|primary|print|proc|procedure|public|raiserror|read|readtext|reconfigure|references|replication|restore|restrict|return|revoke|right|rollback|rowcount|rowguidcol|rule|save|schema|select|session_user|set|setuser|shutdown|some|statistics|system_user|table|textsize|then|to|top|tran|transaction|trigger|truncate|tsequal|union|unique|update|updatetext|use|user|using|values|varying|view|waitfor|when|where|while|with|writetext)(?=[^\w-]|$)/i, | ||
2 | null],["lit",/^[+-]?(?:0x[\da-f]+|(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?)/i],["pln",/^[_a-z][\w-]*/i],["pun",/^[^\w\t\n\r "'\xa0][^\w\t\n\r "'+\xa0-]*/]]),["sql"]); | ||