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

Side by Side Diff: lib/src/prism/components/prism-nsis.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-nsis.js ('k') | lib/src/prism/components/prism-objectivec.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Prism.languages.nsis={comment:{pattern:/(^|[^\\])(\/\*[\w\W]*?\*\/|(^|[^:])(#|;) .*?(\r?\n|$))/,lookbehind:!0},string:/("|')(\\?.)*?\1/,keyword:/\b(Abort|Add(Bra ndingImage|Size)|AdvSplash|Allow(RootDirInstall|SkipFiles)|AutoCloseWindow|Banne r|BG(Font|Gradient|Image)|BrandingText|BringToFront|Call(\b|InstDLL)|Caption|Cha ngeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|CRCCheck|Cre ate(Directory|Font|ShortCut)|Delete(\b|INISec|INIStr|RegKey|RegValue)|Detail(Pri nt|sButtonText)|Dialer|Dir(Text|Var|Verify)|EnableWindow|Enum(RegKey|RegValue)|E xch|Exec(\b|Shell|Wait)|ExpandEnvStrings|File(\b|BufSize|Close|ErrorText|Open|Re ad|ReadByte|ReadUTF16LE|ReadWord|WriteUTF16LE|Seek|Write|WriteByte|WriteWord)|Fi nd(Close|First|Next|Window)|FlushINI|Get(CurInstType|CurrentAddress|DlgItem|DLLV ersion|DLLVersionLocal|ErrorLevel|FileTime|FileTimeLocal|FullPathName|Function(\ b|Address|End)|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(A bort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|Install(ButtonText|Colo rs|Dir|DirRegKey)|InstProgressFlags|Inst(Type|TypeGetText|TypeSetText)|Int(Cmp|C mpU|Fmt|Op)|IsWindow|Lang(DLL|String)|License(BkColor|Data|ForceSelection|LangSt ring|Text)|LoadLanguageFile|LockWindow|Log(Set|Text)|Manifest(DPIAware|Supported OS)|Math|MessageBox|MiscButtonText|Name|Nop|ns(Dialogs|Exec)|NSISdl|OutFile|Page (\b|Callbacks)|Pop|Push|Quit|Read(EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|R ename|RequestExecutionLevel|ReserveFile|Return|RMDir|SearchPath|Section(\b|End|G etFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetT ext)|SendMessage|Set(AutoClose|BrandingImage|Compress|Compressor|CompressorDictS ize|CtlColors|CurInstType|DatablockOptimize|DateSave|DetailsPrint|DetailsView|Er rorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|Re gView|ShellVarContext|Silent)|Show(InstDetails|UninstDetails|Window)|Silent(Inst all|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(Cmp|CmpS|Cpy|Len)|SubCaptio n|System|Unicode|Uninstall(ButtonText|Caption|Icon|SubCaption|Text)|UninstPage|U nRegDLL|UserInfo|Var|VI(AddVersionKey|FileVersion|ProductVersion)|VPatch|WindowI con|WriteINIStr|WriteRegBin|WriteRegDWORD|WriteRegExpandStr|Write(RegStr|Uninsta ller)|XPStyle)\b/,property:/\b(admin|all|auto|both|colored|false|force|hide|high est|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|sil entlog|smooth|textonly|true|user|ARCHIVE|FILE_(ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMA L|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK( CR|CU|DD|LM|PD|U)|HKEY_(CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_ MACHINE|PERFORMANCE_DATA|USERS)|ID(ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(ABOR TRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINF ORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREG ROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM |TEMPORARY)\b/,variable:/(\$(\(|\{)?[-_\w]+)(\)|\})?/i,number:/\b-?(0x[\dA-Fa-f] +|\d*\.?\d+([Ee]-?\d+)?)\b/,operator:/[-+]{1,2}|<=?|>=?|={1,3}|&{1,2}|\|?\||\?|\ *|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/,important:/!(addincludedir|addplugindir |appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversi onsystem|ifdef|ifmacrodef|ifmacrondef|ifndef|if|include|insertmacro|macroend|mac ro|makensis|packhdr|searchparse|searchreplace|tempfile|undef|verbose|warning)\b/ i}; 1 Prism.languages.nsis={comment:{pattern:/(^|[^\\])(\/\*[\w\W]*?\*\/|[#;].*)/,look behind:!0},string:/("|')(\\?.)*?\1/,keyword:/\b(Abort|Add(BrandingImage|Size)|Ad vSplash|Allow(RootDirInstall|SkipFiles)|AutoCloseWindow|Banner|BG(Font|Gradient| Image)|BrandingText|BringToFront|Call(InstDLL)?|Caption|ChangeUI|CheckBitmap|Cle arErrors|CompletedText|ComponentText|CopyFiles|CRCCheck|Create(Directory|Font|Sh ortCut)|Delete(INISec|INIStr|RegKey|RegValue)?|Detail(Print|sButtonText)|Dialer| Dir(Text|Var|Verify)|EnableWindow|Enum(RegKey|RegValue)|Exch|Exec(Shell|Wait)?|E xpandEnvStrings|File(BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|Read Word|WriteUTF16LE|Seek|Write|WriteByte|WriteWord)?|Find(Close|First|Next|Window) |FlushINI|Get(CurInstType|CurrentAddress|DlgItem|DLLVersion(Local)?|ErrorLevel|F ileTime(Local)?|FullPathName|Function(Address|End)?|InstDirError|LabelAddress|Te mpFileName)|Goto|HideWindow|Icon|If(Abort|Errors|FileExists|RebootFlag|Silent)|I nitPluginsDir|Install(ButtonText|Colors|Dir(RegKey)?)|InstProgressFlags|Inst(Typ e(GetText|SetText)?)|Int(CmpU?|Fmt|Op)|IsWindow|Lang(DLL|String)|License(BkColor |Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(Set|Text)| Manifest(DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|Name|Nop|ns(Dialog s|Exec)|NSISdl|OutFile|Page(Callbacks)?|Pop|Push|Quit|Read(EnvStr|INIStr|RegDWOR D|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|RMDir|Se archPath|Section(End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|Set InstTypes|SetSize|SetText)?|SendMessage|Set(AutoClose|BrandingImage|Compress|Com pressor(DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(Prin t|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|Reb ootFlag|RegView|ShellVarContext|Silent)|Show(InstDetails|UninstDetails|Window)|S ilent(Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(CmpS?|Cpy|Len)|Su bCaption|System|Unicode|Uninstall(ButtonText|Caption|Icon|SubCaption|Text)|Unins tPage|UnRegDLL|UserInfo|Var|VI(AddVersionKey|FileVersion|ProductVersion)|VPatch| WindowIcon|Write(INIStr|RegBin|RegDWORD|RegExpandStr|RegStr|Uninstaller)|XPStyle )\b/,property:/\b(admin|all|auto|both|colored|false|force|hide|highest|lastused| leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth |textonly|true|user|ARCHIVE|FILE_(ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_O FFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(CR|CU|DD|LM|P D|U)|HKEY_(CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFO RMANCE_DATA|USERS)|ID(ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(ABORTRETRYIGNORE| DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICON QUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST |USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY)\b /,variable:/\$[({]?[-_\w]+[)}]?/i,number:/\b-?(0x[\dA-Fa-f]+|\d*\.?\d+([Ee]-?\d+ )?)\b/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|?\||[?*\/~^%]/,punctuation:/[{}[\ ];(),.:]/,important:/!(addincludedir|addplugindir|appendfile|cd|define|delfile|e cho|else|endif|error|execute|finalize|getdllversionsystem|ifdef|ifmacrodef|ifmac rondef|ifndef|if|include|insertmacro|macroend|macro|makensis|packhdr|searchparse |searchreplace|tempfile|undef|verbose|warning)\b/i};
OLDNEW
« no previous file with comments | « lib/src/prism/components/prism-nsis.js ('k') | lib/src/prism/components/prism-objectivec.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698