codemirror
Advanced tools
Comparing version 5.50.0 to 5.50.2
@@ -158,2 +158,13 @@ // CodeMirror, copyright (c) by Marijn Haverbeke and others | ||
cmds.skipAndSelectNextOccurrence = function(cm) { | ||
var prevAnchor = cm.getCursor("anchor"), prevHead = cm.getCursor("head"); | ||
cmds.selectNextOccurrence(cm); | ||
if (CodeMirror.cmpPos(prevAnchor, prevHead) != 0) { | ||
cm.doc.setSelections(cm.doc.listSelections() | ||
.filter(function (sel) { | ||
return sel.anchor != prevAnchor || sel.head != prevHead; | ||
})); | ||
} | ||
} | ||
function addCursorToSelection(cm, dir) { | ||
@@ -609,2 +620,3 @@ var ranges = cm.listSelections(), newRanges = []; | ||
"Backspace": "smartBackspace", | ||
"Cmd-K Cmd-D": "skipAndSelectNextOccurrence", | ||
"Cmd-K Cmd-K": "delLineRight", | ||
@@ -670,2 +682,3 @@ "Cmd-K Cmd-U": "upcaseAtCursor", | ||
"Backspace": "smartBackspace", | ||
"Ctrl-K Ctrl-D": "skipAndSelectNextOccurrence", | ||
"Ctrl-K Ctrl-K": "delLineRight", | ||
@@ -672,0 +685,0 @@ "Ctrl-K Ctrl-U": "upcaseAtCursor", |
@@ -130,4 +130,3 @@ // CodeMirror, copyright (c) by Marijn Haverbeke and others | ||
if (inArray(state) && ch === ']') { | ||
if (currentScope(state) === "if") { state.scopes.pop(); } | ||
while (currentScope(state) === "for") { state.scopes.pop(); } | ||
while (currentScope(state) !== "[") { state.scopes.pop(); } | ||
state.scopes.pop(); | ||
@@ -139,4 +138,3 @@ state.nestedArrays--; | ||
if (inGenerator(state) && ch === ')') { | ||
if (currentScope(state) === "if") { state.scopes.pop(); } | ||
while (currentScope(state) === "for") { state.scopes.pop(); } | ||
while (currentScope(state) !== "(") { state.scopes.pop(); } | ||
state.scopes.pop(); | ||
@@ -143,0 +141,0 @@ state.nestedGenerators--; |
@@ -34,3 +34,3 @@ // CodeMirror, copyright (c) by Marijn Haverbeke and others | ||
// Runtime Commands | ||
{regex: /^\s*(?:Abort|AddBrandingImage|AddSize|AllowRootDirInstall|AllowSkipFiles|AutoCloseWindow|BGFont|BGGradient|BrandingText|BringToFront|Call|CallInstDLL|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|CRCCheck|CreateDirectory|CreateFont|CreateShortCut|Delete|DeleteINISec|DeleteINIStr|DeleteRegKey|DeleteRegValue|DetailPrint|DetailsButtonText|DirText|DirVar|DirVerify|EnableWindow|EnumRegKey|EnumRegValue|Exch|Exec|ExecShell|ExecShellWait|ExecWait|ExpandEnvStrings|File|FileBufSize|FileClose|FileErrorText|FileOpen|FileRead|FileReadByte|FileReadUTF16LE|FileReadWord|FileWriteUTF16LE|FileSeek|FileWrite|FileWriteByte|FileWriteWord|FindClose|FindFirst|FindNext|FindWindow|FlushINI|GetCurInstType|GetCurrentAddress|GetDlgItem|GetDLLVersion|GetDLLVersionLocal|GetErrorLevel|GetFileTime|GetFileTimeLocal|GetFullPathName|GetFunctionAddress|GetInstDirError|GetLabelAddress|GetTempFileName|Goto|HideWindow|Icon|IfAbort|IfErrors|IfFileExists|IfRebootFlag|IfSilent|InitPluginsDir|InstallButtonText|InstallColors|InstallDir|InstallDirRegKey|InstProgressFlags|InstType|InstTypeGetText|InstTypeSetText|Int64Cmp|Int64CmpU|Int64Fmt|IntCmp|IntCmpU|IntFmt|IntOp|IntPtrCmp|IntPtrCmpU|IntPtrOp|IsWindow|LangString|LicenseBkColor|LicenseData|LicenseForceSelection|LicenseLangString|LicenseText|LoadLanguageFile|LockWindow|LogSet|LogText|ManifestDPIAware|ManifestSupportedOS|MessageBox|MiscButtonText|Name|Nop|OutFile|Page|PageCallbacks|PEDllCharacteristics|PESubsysVer|Pop|Push|Quit|ReadEnvStr|ReadINIStr|ReadRegDWORD|ReadRegStr|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|RMDir|SearchPath|SectionGetFlags|SectionGetInstTypes|SectionGetSize|SectionGetText|SectionIn|SectionSetFlags|SectionSetInstTypes|SectionSetSize|SectionSetText|SendMessage|SetAutoClose|SetBrandingImage|SetCompress|SetCompressor|SetCompressorDictSize|SetCtlColors|SetCurInstType|SetDatablockOptimize|SetDateSave|SetDetailsPrint|SetDetailsView|SetErrorLevel|SetErrors|SetFileAttributes|SetFont|SetOutPath|SetOverwrite|SetRebootFlag|SetRegView|SetShellVarContext|SetSilent|ShowInstDetails|ShowUninstDetails|ShowWindow|SilentInstall|SilentUnInstall|Sleep|SpaceTexts|StrCmp|StrCmpS|StrCpy|StrLen|SubCaption|Unicode|UninstallButtonText|UninstallCaption|UninstallIcon|UninstallSubCaption|UninstallText|UninstPage|UnRegDLL|Var|VIAddVersionKey|VIFileVersion|VIProductVersion|WindowIcon|WriteINIStr|WriteRegBin|WriteRegDWORD|WriteRegExpandStr|WriteRegMultiStr|WriteRegNone|WriteRegStr|WriteUninstaller|XPStyle)\b/, token: "keyword"}, | ||
{regex: /^\s*(?:Abort|AddBrandingImage|AddSize|AllowRootDirInstall|AllowSkipFiles|AutoCloseWindow|BGFont|BGGradient|BrandingText|BringToFront|Call|CallInstDLL|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|CRCCheck|CreateDirectory|CreateFont|CreateShortCut|Delete|DeleteINISec|DeleteINIStr|DeleteRegKey|DeleteRegValue|DetailPrint|DetailsButtonText|DirText|DirVar|DirVerify|EnableWindow|EnumRegKey|EnumRegValue|Exch|Exec|ExecShell|ExecShellWait|ExecWait|ExpandEnvStrings|File|FileBufSize|FileClose|FileErrorText|FileOpen|FileRead|FileReadByte|FileReadUTF16LE|FileReadWord|FileWriteUTF16LE|FileSeek|FileWrite|FileWriteByte|FileWriteWord|FindClose|FindFirst|FindNext|FindWindow|FlushINI|GetCurInstType|GetCurrentAddress|GetDlgItem|GetDLLVersion|GetDLLVersionLocal|GetErrorLevel|GetFileTime|GetFileTimeLocal|GetFullPathName|GetFunctionAddress|GetInstDirError|GetLabelAddress|GetTempFileName|Goto|HideWindow|Icon|IfAbort|IfErrors|IfFileExists|IfRebootFlag|IfSilent|InitPluginsDir|InstallButtonText|InstallColors|InstallDir|InstallDirRegKey|InstProgressFlags|InstType|InstTypeGetText|InstTypeSetText|Int64Cmp|Int64CmpU|Int64Fmt|IntCmp|IntCmpU|IntFmt|IntOp|IntPtrCmp|IntPtrCmpU|IntPtrOp|IsWindow|LangString|LicenseBkColor|LicenseData|LicenseForceSelection|LicenseLangString|LicenseText|LoadAndSetImage|LoadLanguageFile|LockWindow|LogSet|LogText|ManifestDPIAware|ManifestLongPathAware|ManifestMaxVersionTested|ManifestSupportedOS|MessageBox|MiscButtonText|Name|Nop|OutFile|Page|PageCallbacks|PEAddResource|PEDllCharacteristics|PERemoveResource|PESubsysVer|Pop|Push|Quit|ReadEnvStr|ReadINIStr|ReadRegDWORD|ReadRegStr|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|RMDir|SearchPath|SectionGetFlags|SectionGetInstTypes|SectionGetSize|SectionGetText|SectionIn|SectionSetFlags|SectionSetInstTypes|SectionSetSize|SectionSetText|SendMessage|SetAutoClose|SetBrandingImage|SetCompress|SetCompressor|SetCompressorDictSize|SetCtlColors|SetCurInstType|SetDatablockOptimize|SetDateSave|SetDetailsPrint|SetDetailsView|SetErrorLevel|SetErrors|SetFileAttributes|SetFont|SetOutPath|SetOverwrite|SetRebootFlag|SetRegView|SetShellVarContext|SetSilent|ShowInstDetails|ShowUninstDetails|ShowWindow|SilentInstall|SilentUnInstall|Sleep|SpaceTexts|StrCmp|StrCmpS|StrCpy|StrLen|SubCaption|Unicode|UninstallButtonText|UninstallCaption|UninstallIcon|UninstallSubCaption|UninstallText|UninstPage|UnRegDLL|Var|VIAddVersionKey|VIFileVersion|VIProductVersion|WindowIcon|WriteINIStr|WriteRegBin|WriteRegDWORD|WriteRegExpandStr|WriteRegMultiStr|WriteRegNone|WriteRegStr|WriteUninstaller|XPStyle)\b/, token: "keyword"}, | ||
{regex: /^\s*(?:Function|PageEx|Section(?:Group)?)\b/, token: "keyword", indent: true}, | ||
@@ -37,0 +37,0 @@ {regex: /^\s*(?:(Function|PageEx|Section(?:Group)?)End)\b/, token: "keyword", dedent: true}, |
@@ -24,3 +24,2 @@ // CodeMirror, copyright (c) by Marijn Haverbeke and others | ||
"@state": paramData, | ||
"@state?": paramData, | ||
"template": { soyState: "templ-def", variableScope: true}, | ||
@@ -254,3 +253,4 @@ "literal": { }, | ||
case "param-type": | ||
if (stream.peek() == "}") { | ||
var peekChar = stream.peek(); | ||
if (peekChar == "}" || peekChar == "=") { | ||
state.soyState.pop(); | ||
@@ -334,3 +334,2 @@ return null; | ||
if (stream.match(/^(?=\{\/literal})/)) { | ||
state.indent -= config.indentUnit; | ||
state.soyState.pop(); | ||
@@ -337,0 +336,0 @@ return this.token(stream, state); |
{ | ||
"name": "codemirror", | ||
"version": "5.50.0", | ||
"version": "5.50.2", | ||
"main": "lib/codemirror.js", | ||
@@ -5,0 +5,0 @@ "style": "lib/codemirror.css", |
@@ -130,3 +130,3 @@ import { buildLineContent } from "../line/line_data.js" | ||
next = node.nextSibling | ||
if (isWidget.test(node)) lineView.node.removeChild(node) | ||
if (isWidget.test(node.className)) lineView.node.removeChild(node) | ||
} | ||
@@ -133,0 +133,0 @@ insertLineWidgets(cm, lineView, dims) |
@@ -69,2 +69,2 @@ // EDITOR CONSTRUCTOR | ||
CodeMirror.version = "5.50.0" | ||
CodeMirror.version = "5.50.2" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2829150
64013