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

Side by Side Diff: lib/src/prism/components/prism-nsis.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-nim.min.js ('k') | lib/src/prism/components/prism-nsis.min.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 /** 1 /**
2 * Original by Jan T. Sott (http://github.com/idleberg) 2 * Original by Jan T. Sott (http://github.com/idleberg)
3 * 3 *
4 * Includes all commands and plug-ins shipped with NSIS 3.0a2 4 * Includes all commands and plug-ins shipped with NSIS 3.0a2
5 */ 5 */
6 Prism.languages.nsis = { 6 Prism.languages.nsis = {
7 'comment': { 7 'comment': {
8 » » pattern: /(^|[^\\])(\/\*[\w\W]*?\*\/|(^|[^:])(#|;).*?(\r?\n|$))/ , 8 » » pattern: /(^|[^\\])(\/\*[\w\W]*?\*\/|[#;].*)/,
9 lookbehind: true 9 lookbehind: true
10 }, 10 },
11 'string': /("|')(\\?.)*?\1/, 11 'string': /("|')(\\?.)*?\1/,
12 » 'keyword': /\b(Abort|Add(BrandingImage|Size)|AdvSplash|Allow(RootDirInst all|SkipFiles)|AutoCloseWindow|Banner|BG(Font|Gradient|Image)|BrandingText|Bring ToFront|Call(\b|InstDLL)|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText| ComponentText|CopyFiles|CRCCheck|Create(Directory|Font|ShortCut)|Delete(\b|INISe c|INIStr|RegKey|RegValue)|Detail(Print|sButtonText)|Dialer|Dir(Text|Var|Verify)| EnableWindow|Enum(RegKey|RegValue)|Exch|Exec(\b|Shell|Wait)|ExpandEnvStrings|Fil e(\b|BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|WriteUTF16L E|Seek|Write|WriteByte|WriteWord)|Find(Close|First|Next|Window)|FlushINI|Get(Cur InstType|CurrentAddress|DlgItem|DLLVersion|DLLVersionLocal|ErrorLevel|FileTime|F ileTimeLocal|FullPathName|Function(\b|Address|End)|InstDirError|LabelAddress|Tem pFileName)|Goto|HideWindow|Icon|If(Abort|Errors|FileExists|RebootFlag|Silent)|In itPluginsDir|Install(ButtonText|Colors|Dir|DirRegKey)|InstProgressFlags|Inst(Typ e|TypeGetText|TypeSetText)|Int(Cmp|CmpU|Fmt|Op)|IsWindow|Lang(DLL|String)|Licens e(BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(S et|Text)|Manifest(DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|Name|Nop| ns(Dialogs|Exec)|NSISdl|OutFile|Page(\b|Callbacks)|Pop|Push|Quit|Read(EnvStr|INI Str|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Retu rn|RMDir|SearchPath|Section(\b|End|GetFlags|GetInstTypes|GetSize|GetText|Group|I n|SetFlags|SetInstTypes|SetSize|SetText)|SendMessage|Set(AutoClose|BrandingImage |Compress|Compressor|CompressorDictSize|CtlColors|CurInstType|DatablockOptimize| DateSave|DetailsPrint|DetailsView|ErrorLevel|Errors|FileAttributes|Font|OutPath| Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(InstDetai ls|UninstDetails|Window)|Silent(Install|UnInstall)|Sleep|SpaceTexts|Splash|Start Menu|Str(Cmp|CmpS|Cpy|Len)|SubCaption|System|Unicode|Uninstall(ButtonText|Captio n|Icon|SubCaption|Text)|UninstPage|UnRegDLL|UserInfo|Var|VI(AddVersionKey|FileVe rsion|ProductVersion)|VPatch|WindowIcon|WriteINIStr|WriteRegBin|WriteRegDWORD|Wr iteRegExpandStr|Write(RegStr|Uninstaller)|XPStyle)\b/, 12 » 'keyword': /\b(Abort|Add(BrandingImage|Size)|AdvSplash|Allow(RootDirInst all|SkipFiles)|AutoCloseWindow|Banner|BG(Font|Gradient|Image)|BrandingText|Bring ToFront|Call(InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|Co mponentText|CopyFiles|CRCCheck|Create(Directory|Font|ShortCut)|Delete(INISec|INI Str|RegKey|RegValue)?|Detail(Print|sButtonText)|Dialer|Dir(Text|Var|Verify)|Enab leWindow|Enum(RegKey|RegValue)|Exch|Exec(Shell|Wait)?|ExpandEnvStrings|File(BufS ize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|WriteUTF16LE|Seek|Wr ite|WriteByte|WriteWord)?|Find(Close|First|Next|Window)|FlushINI|Get(CurInstType |CurrentAddress|DlgItem|DLLVersion(Local)?|ErrorLevel|FileTime(Local)?|FullPathN ame|Function(Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWind ow|Icon|If(Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|Install(But tonText|Colors|Dir(RegKey)?)|InstProgressFlags|Inst(Type(GetText|SetText)?)|Int( CmpU?|Fmt|Op)|IsWindow|Lang(DLL|String)|License(BkColor|Data|ForceSelection|Lang String|Text)|LoadLanguageFile|LockWindow|Log(Set|Text)|Manifest(DPIAware|Support edOS)|Math|MessageBox|MiscButtonText|Name|Nop|ns(Dialogs|Exec)|NSISdl|OutFile|Pa ge(Callbacks)?|Pop|Push|Quit|Read(EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|R ename|RequestExecutionLevel|ReserveFile|Return|RMDir|SearchPath|Section(End|GetF lags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText )?|SendMessage|Set(AutoClose|BrandingImage|Compress|Compressor(DictSize)?|CtlCol ors|CurInstType|DatablockOptimize|DateSave|Details(Print|View)|ErrorLevel|Errors |FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarC ontext|Silent)|Show(InstDetails|UninstDetails|Window)|Silent(Install|UnInstall)| Sleep|SpaceTexts|Splash|StartMenu|Str(CmpS?|Cpy|Len)|SubCaption|System|Unicode|U ninstall(ButtonText|Caption|Icon|SubCaption|Text)|UninstPage|UnRegDLL|UserInfo|V ar|VI(AddVersionKey|FileVersion|ProductVersion)|VPatch|WindowIcon|Write(INIStr|R egBin|RegDWORD|RegExpandStr|RegStr|Uninstaller)|XPStyle)\b/,
13 'property': /\b(admin|all|auto|both|colored|false|force|hide|highest|las tused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog| smooth|textonly|true|user|ARCHIVE|FILE_(ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRI BUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(CR|CU|D D|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_(ABORTRETRYI GNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATIO N|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|T OPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPOR ARY)\b/, 13 'property': /\b(admin|all|auto|both|colored|false|force|hide|highest|las tused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog| smooth|textonly|true|user|ARCHIVE|FILE_(ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRI BUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(CR|CU|D D|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_(ABORTRETRYI GNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATIO N|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|T OPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPOR ARY)\b/,
14 » 'variable': /(\$(\(|\{)?[-_\w]+)(\)|\})?/i, 14 » 'variable': /\$[({]?[-_\w]+[)}]?/i,
15 'number': /\b-?(0x[\dA-Fa-f]+|\d*\.?\d+([Ee]-?\d+)?)\b/, 15 'number': /\b-?(0x[\dA-Fa-f]+|\d*\.?\d+([Ee]-?\d+)?)\b/,
16 » 'operator': /[-+]{1,2}|<=?|>=?|={1,3}|&{1,2}|\|?\||\?|\*|\/|~|\^|%/, 16 » 'operator': /--?|\+\+?|<=?|>=?|==?=?|&&?|\|?\||[?*\/~^%]/,
17 'punctuation': /[{}[\];(),.:]/, 17 'punctuation': /[{}[\];(),.:]/,
18 'important': /!(addincludedir|addplugindir|appendfile|cd|define|delfile| echo|else|endif|error|execute|finalize|getdllversionsystem|ifdef|ifmacrodef|ifma crondef|ifndef|if|include|insertmacro|macroend|macro|makensis|packhdr|searchpars e|searchreplace|tempfile|undef|verbose|warning)\b/i 18 'important': /!(addincludedir|addplugindir|appendfile|cd|define|delfile| echo|else|endif|error|execute|finalize|getdllversionsystem|ifdef|ifmacrodef|ifma crondef|ifndef|if|include|insertmacro|macroend|macro|makensis|packhdr|searchpars e|searchreplace|tempfile|undef|verbose|warning)\b/i
19 }; 19 };
OLDNEW
« no previous file with comments | « lib/src/prism/components/prism-nim.min.js ('k') | lib/src/prism/components/prism-nsis.min.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698