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

Side by Side Diff: lib/src/prism/components/prism-makefile.js

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: code review updates Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
1 Prism.languages.makefile = { 1 Prism.languages.makefile = {
2 'comment': { 2 'comment': {
3 » » pattern: /(^|[^\\])#(?:\\[\s\S]|.)*/, 3 » » pattern: /(^|[^\\])#(?:\\(?:\r\n|[\s\S])|.)*/,
4 lookbehind: true 4 lookbehind: true
5 }, 5 },
6 » 'string': /(["'])(?:\\[\s\S]|(?!\1)[^\\\r\n])*\1/, 6 » 'string': /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
7 7
8 // Built-in target names 8 // Built-in target names
9 'builtin': /\.[A-Z][^:#=\s]+(?=\s*:(?!=))/, 9 'builtin': /\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,
10 10
11 // Targets 11 // Targets
12 'symbol': { 12 'symbol': {
13 pattern: /^[^:=\r\n]+(?=\s*:(?!=))/m, 13 pattern: /^[^:=\r\n]+(?=\s*:(?!=))/m,
14 inside: { 14 inside: {
15 'variable': /\$+(?:[^(){}:#=\s]+|(?=[({]))/ 15 'variable': /\$+(?:[^(){}:#=\s]+|(?=[({]))/
16 } 16 }
17 }, 17 },
18 'variable': /\$+(?:[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/, 18 'variable': /\$+(?:[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,
19 19
20 'keyword': [ 20 'keyword': [
21 // Directives 21 // Directives
22 » » /\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|-?include|ov erride|private|sinclude|undefine|unexport|vpath)\b/, 22 » » /-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|i nclude|override|private|sinclude|undefine|unexport|vpath)\b/,
23 // Functions 23 // Functions
24 { 24 {
25 pattern: /(\()(?:addsuffix|abspath|and|basename|call|dir |error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|in fo|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst| suffix|value|warning|wildcard|word(?:s|list)?)(?=[ \t])/, 25 pattern: /(\()(?:addsuffix|abspath|and|basename|call|dir |error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|in fo|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst| suffix|value|warning|wildcard|word(?:s|list)?)(?=[ \t])/,
26 lookbehind: true 26 lookbehind: true
27 } 27 }
28 ], 28 ],
29 'operator': /(?:::|[?:+!])?=|[|@]/, 29 'operator': /(?:::|[?:+!])?=|[|@]/,
30 'punctuation': /[:;(){}]/ 30 'punctuation': /[:;(){}]/
31 }; 31 };
OLDNEW
« no previous file with comments | « lib/src/prism/components/prism-lolcode.min.js ('k') | lib/src/prism/components/prism-makefile.min.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698