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

Side by Side Diff: lib/src/prism/components/prism-prolog.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
(Empty)
1 Prism.languages.prolog = {
2 // Syntax depends on the implementation
3 'comment': [
4 /%.+/,
5 /\/\*[\s\S]*?\*\//
6 ],
7 // Depending on the implementation, strings may allow escaped newlines a nd quote-escape
8 'string': /(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
9 'builtin': /\b(?:fx|fy|xf[xy]?|yfx?)\b/,
10 'variable': /\b[A-Z_]\w*/,
11 // FIXME: Should we list all null-ary predicates (not followed by a pare nthesis) like halt, trace, etc.?
12 'function': /\b[a-z]\w*(?:(?=\()|\/\d+)/,
13 'number': /\b\d+\.?\d*/,
14 // Custom operators are allowed
15 'operator': /[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,
16 'punctuation': /[(){}\[\],]/
17 };
OLDNEW
« no previous file with comments | « lib/src/prism/components/prism-processing.min.js ('k') | lib/src/prism/components/prism-prolog.min.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698