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

Side by Side Diff: lib/src/prism/components/prism-glsl.min.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
« no previous file with comments | « lib/src/prism/components/prism-glsl.js ('k') | lib/src/prism/components/prism-go.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 Prism.languages.glsl=Prism.languages.extend("clike",{comment:[/\/\*[\w\W]*?\*\// ,/\/\/(?:\\(?:\r\n|[\s\S])|.)*/],number:/\b(?:0x[\da-f]+|(?:\.\d+|\d+\.?\d*)(?:e [+-]?\d+)?)[ulf]*\b/i,keyword:/\b(?:attribute|const|uniform|varying|buffer|share d|coherent|volatile|restrict|readonly|writeonly|atomic_uint|layout|centroid|flat |smooth|noperspective|patch|sample|break|continue|do|for|while|switch|case|defau lt|if|else|subroutine|in|out|inout|float|double|int|void|bool|true|false|invaria nt|precise|discard|return|d?mat[234](?:x[234])?|[ibdu]?vec[234]|uint|lowp|medium p|highp|precision|[iu]?sampler[123]D|[iu]?samplerCube|sampler[12]DShadow|sampler CubeShadow|[iu]?sampler[12]DArray|sampler[12]DArrayShadow|[iu]?sampler2DRect|sam pler2DRectShadow|[iu]?samplerBuffer|[iu]?sampler2DMS(?:Array)?|[iu]?samplerCubeA rray|samplerCubeArrayShadow|[iu]?image[123]D|[iu]?image2DRect|[iu]?imageCube|[iu ]?imageBuffer|[iu]?image[12]DArray|[iu]?imageCubeArray|[iu]?image2DMS(?:Array)?| struct|common|partition|active|asm|class|union|enum|typedef|template|this|resour ce|goto|inline|noinline|public|static|extern|external|interface|long|short|half| fixed|unsigned|superp|input|output|hvec[234]|fvec[234]|sampler3DRect|filter|size of|cast|namespace|using)\b/}),Prism.languages.insertBefore("glsl","comment",{pre processor:{pattern:/(^[ \t]*)#(?:(?:define|undef|if|ifdef|ifndef|else|elif|endif |error|pragma|extension|version|line)\b)?/m,lookbehind:!0,alias:"builtin"}});
OLDNEW
« no previous file with comments | « lib/src/prism/components/prism-glsl.js ('k') | lib/src/prism/components/prism-go.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698