@ 261105.1

191030.2.1.3 · ab639e1b7412fa09f5302cf3cfcfbabef883cf6b

EditorConfig: Lua

Enforce consistent code styles for all Lua files (.lua, .lang, .theme):

* Indent: 2 spaces.
* Trim trailing whitespace.
* Insert final new line.
* UTF-8 encoding.

Manually fix all scripts that didn't pass EClint validation (256 files).

reading declarations

Changes to langDefs/vimscript.lang. All files

langDefs/vimscript.lang

@@ -1,6 +1,6 @@ Description="vimscript" --- Syntax file created by Max Christian Pohle +-- Syntax file created by Max Christian Pohle   Categories = {"script", "config"}@@ -25,18 +25,18 @@ Keywords={  Strings = {   Delimiter=[[']],-  -   DelimiterPairs= {++  DelimiterPairs= {     { Open=[["(?=.*")]], Close=[["]] }   } }  Comments = {-   {-     Block=false,-     Nested=false,-     Delimiter = { [[ ^"|"(?!.*")]] }-   }+  {+    Block=false,+    Nested=false,+    Delimiter = { [[ ^"|"(?!.*")]] }+  } }  IgnoreCase=true@@ -45,14 +45,14 @@ Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\.|\:|\&|<|>|\!|=|\/|\*|\%|\+|\-|\~|\||\^]]  function OnStateChange(oldState, newState, token) -   if newState==HL_STRING  then-      openDelim=token-   end+  if newState==HL_STRING  then+    openDelim=token+  end++  if oldState==HL_STRING and token==openDelim then+    openDelim = nil+    return HL_STRING_END+  end -   if oldState==HL_STRING and token==openDelim then-      openDelim = nil-      return HL_STRING_END-   end-   -   return newState+  return newState end