Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(279)

Unified Diff: polymer_1.0.4/bower_components/prism/components/prism-sas.js

Issue 1205703007: Add polymer 1.0 to npm_modules (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Renamed folder to 1.0.4 Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: polymer_1.0.4/bower_components/prism/components/prism-sas.js
diff --git a/polymer_1.0.4/bower_components/prism/components/prism-sas.js b/polymer_1.0.4/bower_components/prism/components/prism-sas.js
new file mode 100644
index 0000000000000000000000000000000000000000..e8696d2deece820d0202f2db1ef57139de9513a6
--- /dev/null
+++ b/polymer_1.0.4/bower_components/prism/components/prism-sas.js
@@ -0,0 +1,35 @@
+Prism.languages.sas = {
+ 'datalines': {
+ pattern: /(^|[\r\n])\s*(?:(?:data)?lines|cards);[\s\S]+?[\r\n];/i,
+ lookbehind: true,
+ inside: {
+ 'keyword': {
+ pattern: /^(\s*)(?:(?:data)?lines|cards)/i,
+ lookbehind: true
+ },
+ 'punctuation': /;/,
+ 'data': {
+ pattern: /[\s\S]+/,
+ alias: 'string'
+ }
+ }
+ },
+ 'comment': [
+ {
+ pattern: /(^\s*|;\s*)\*.*;/m,
+ lookbehind: true
+ },
+ /\/\*[\s\S]+?\*\//
+ ],
+ 'datetime': {
+ // '1jan2013'd, '9:25:19pm't, '18jan2003:9:27:05am'dt
+ pattern: /'[^']+'(?:d|d?t)\b/i,
+ alias: 'number'
+ },
+ 'string': /(["'])(?:\1\1|(?!\1)[\s\S])*\1/,
+ 'keyword': /\b(?:data|else|format|if|input|proc|run|then)\b/i,
+ // Decimal (1.2e23), hexadecimal (0c1x)
+ 'number': /(?:\B-|\b)(?:[\da-f]+x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)/i,
+ 'operator': /\*\*|\|\||!!|¦¦|<>|><|[~¬^<>]?=|[*\/+\-<>&\|!¦~¬^]|\b(?:eq|ne|gt|lt|ge|le|in|not)\b/i,
+ 'punctuation': /[$%@.(){}\[\];,\\]/
+};

Powered by Google App Engine
This is Rietveld 408576698