github-linguist 7.6.1 → 7.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/bin/github-linguist +17 -4
- data/grammars/annotation.liquidhaskell.haskell.json +11 -11
- data/grammars/etc.json +212 -3
- data/grammars/hidden.manref.json +29 -0
- data/grammars/hint.haskell.json +11 -11
- data/grammars/hint.message.haskell.json +11 -11
- data/grammars/hint.type.haskell.json +11 -11
- data/grammars/injections.etc.json +601 -1
- data/grammars/source.abap.json +7 -7
- data/grammars/source.abnf.json +23 -1
- data/grammars/source.ahk.json +3 -3
- data/grammars/source.angelscript.json +1 -1
- data/grammars/source.ballerina.json +54 -18
- data/grammars/source.csound.json +1 -1
- data/grammars/source.css.json +2 -2
- data/grammars/source.css.scss.json +164 -15
- data/grammars/source.curlrc.json +869 -65
- data/grammars/source.dart.json +1 -1
- data/grammars/source.dircolors.json +39 -0
- data/grammars/source.direct-x.json +135 -0
- data/grammars/source.ebnf.json +67 -39
- data/grammars/source.elixir.json +43 -0
- data/grammars/source.gfm.json +1 -1
- data/grammars/source.gitconfig.json +1 -1
- data/grammars/source.hack.json +196 -80
- data/grammars/source.haskell.json +11 -11
- data/grammars/source.hosts.json +40 -0
- data/grammars/source.hsig.json +11 -11
- data/grammars/source.igor.json +2 -2
- data/grammars/source.ini.npmrc.json +311 -0
- data/grammars/source.inno.json +133 -0
- data/grammars/source.inputrc.json +500 -0
- data/grammars/source.js.json +4 -4
- data/grammars/source.julia.json +45 -3
- data/grammars/source.kotlin.json +1 -1
- data/grammars/source.lex.json +4 -4
- data/grammars/source.m4.json +141 -99
- data/grammars/source.man-conf.json +46 -34
- data/grammars/source.matlab.json +225 -35
- data/grammars/source.mcfunction-snapshot.json +21388 -561
- data/grammars/source.mcfunction.json +55 -5
- data/grammars/source.mlir.json +37 -317
- data/grammars/source.mrc.json +858 -0
- data/grammars/source.opts.json +12 -2
- data/grammars/source.p4.json +21 -5
- data/grammars/source.prisma.json +428 -0
- data/grammars/source.python.json +2 -0
- data/grammars/source.reason.json +28 -16
- data/grammars/source.rego.json +124 -0
- data/grammars/source.sass.json +158 -3
- data/grammars/source.scala.json +26 -15
- data/grammars/source.ssh-config.json +1 -14
- data/grammars/source.swift.json +162 -2
- data/grammars/source.ts.json +74 -25
- data/grammars/source.tsx.json +75 -26
- data/grammars/source.v.json +58 -16
- data/grammars/source.vim-snippet.json +645 -0
- data/grammars/source.viml.json +5 -5
- data/grammars/source.wgetrc.json +1640 -0
- data/grammars/source.zig.json +169 -304
- data/grammars/text.html.php.blade.json +1 -1
- data/grammars/text.html.riot.json +788 -0
- data/grammars/text.muse.json +1471 -0
- data/grammars/text.tex.latex.haskell.json +11 -11
- data/grammars/text.vim-help.json +383 -0
- data/grammars/version +1 -1
- data/lib/linguist/VERSION +1 -1
- data/lib/linguist/blob_helper.rb +4 -2
- data/lib/linguist/generated.rb +39 -12
- data/lib/linguist/heuristics.yml +16 -1
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +183 -14
- data/lib/linguist/linguist.bundle +0 -0
- data/lib/linguist/samples.json +6910 -536
- data/lib/linguist/vendor.yml +6 -0
- metadata +18 -5
- data/grammars/source.jlex.json +0 -322
@@ -0,0 +1,133 @@
|
|
1
|
+
{
|
2
|
+
"name": "Inno Setup",
|
3
|
+
"scopeName": "source.inno",
|
4
|
+
"patterns": [
|
5
|
+
{
|
6
|
+
"name": "source.pascal.embedded.inno",
|
7
|
+
"begin": "^(\\[(?i)Code\\])$",
|
8
|
+
"end": "^(?i)(\\[(Components|CustomMessages|Dirs|Files|Icons|INI|InstallDelete|LangOptions|Languages|Messages|Registry|Run|Setup|Tasks|Types|UninstallDelete|UninstallRun)\\])$",
|
9
|
+
"patterns": [
|
10
|
+
{
|
11
|
+
"include": "source.pascal"
|
12
|
+
}
|
13
|
+
],
|
14
|
+
"beginCaptures": {
|
15
|
+
"1": {
|
16
|
+
"name": "entity.name.section.inno"
|
17
|
+
}
|
18
|
+
},
|
19
|
+
"endCaptures": {
|
20
|
+
"1": {
|
21
|
+
"name": "entity.name.section.inno"
|
22
|
+
}
|
23
|
+
}
|
24
|
+
},
|
25
|
+
{
|
26
|
+
"name": "keyword.inno",
|
27
|
+
"match": "^(?i)\\s*(AllowCancelDuringInstall|AllowNetworkDrive|AllowNoIcons|AllowRootDirectory|AllowUNCPath|AlwaysCreateUninstallIcon|AlwaysRestart|AlwaysShowComponentsList|AlwaysShowDirOnReadyPage|AlwaysShowGroupOnReadyPage|AlwaysUsePersonalGroup|AppComments|AppContact|AppCopyright|AppendDefaultDirName|AppendDefaultGroupName|AppId|AppModifyPath|AppMutex|AppName|AppPublisher|AppPublisherURL|AppReadmeFile|AppSupportPhone|AppSupportURL|AppUpdatesURL|AppVerName|AppVersion|ArchitecturesAllowed|ArchitecturesInstallIn64BitMode|BackColor|BackColor2|BackColorDirection|BackSolid|ChangesAssociations|ChangesEnvironment|CloseApplications|CloseApplicationsFilter|Compression|CompressionThreads|CopyrightFontName|CopyrightFontSize|CreateAppDir|CreateUninstallRegKey|DefaultDialogFontName|DefaultDirName|DefaultGroupName|DefaultUserInfoName|DefaultUserInfoOrg|DefaultUserInfoSerial|DialogFontName|DialogFontSize|DirExistsWarning|DisableDirPage|DisableFinishedPage|DisableProgramGroupPage|DisableReadyMemo|DisableReadyPage|DisableStartupPrompt|DisableWelcomePage|DiskClusterSize|DiskSliceSize|DiskSpanning|EnableDirDoesntExistWarning|Encryption|ExtraDiskSpaceRequired|FlatComponentsList|InfoAfterFile|InfoBeforeFile|InternalCompressLevel|LanguageCodePage|LanguageDetectionMethod|LanguageID|LanguageName|LicenseFile|LZMAAlgorithm|LZMABlockSize|LZMADictionarySize|LZMAMatchFinder|LZMANumBlockThreads|LZMANumFastBytes|LZMAUseSeparateProcess|MergeDuplicateFiles|MinVersion|OnlyBelowVersion|Output|OutputBaseFilename|OutputDir|OutputManifestFile|Password|PrivilegesRequired|ReserveBytes|RestartApplications|RestartIfNeededByRun|RightToLeft|SetupIconFile|SetupLogging|ShowComponentSizes|ShowLanguageDialog|ShowTasksTreeLines|ShowUndisplayableLanguages|SignedUninstaller|SignedUninstallerDir|SignTool|SignToolMinimumTimeBetween|SignToolRetryCount|SignToolRetryDelay|SlicesPerDisk|SolidCompression|SourceDir|TerminalServicesAware|TimeStampRounding|TimeStampsInUTC|TitleFontName|TitleFontSize|TouchDate|TouchTime|Uninstallable|UninstallDisplayIcon|UninstallDisplayName|UninstallDisplaySize|UninstallFilesDir|UninstallLogMode|UninstallRestartComputer|UpdateUninstallLogAppName|UsePreviousAppDir|UsePreviousGroup|UsePreviousLanguage|UsePreviousSetupType|UsePreviousTasks|UsePreviousUserInfo|UserInfoPage|UseSetupLdr|VersionInfoCompany|VersionInfoCopyright|VersionInfoDescription|VersionInfoOriginalFileName|VersionInfoProductName|VersionInfoProductTextVersion|VersionInfoProductVersion|VersionInfoTextVersion|VersionInfoVersion|WelcomeFontName|WelcomeFontSize|WindowResizable|WindowShowCaption|WindowStartMaximized|WindowVisible|WizardImageBackColor|WizardImageFile|WizardImageStretch|WizardSmallImageFile)(?=\\s*=)"
|
28
|
+
},
|
29
|
+
{
|
30
|
+
"name": "keyword.other.inno",
|
31
|
+
"match": "^(?i)\\s*#(append|define|dim|elif|else|emit|endif|endsub|error|expr|file|for|if|ifn?def|ifn?exist|include|insert|pragma|preproc|redim|sub|undef)\\b"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"name": "keyword.other.inno",
|
35
|
+
"match": "\\b(?i)(AfterInstall|AfterMyProgInstall|BeforeInstall|BeforeMyProgInstall|Check|Components|Description|DestDir|DestName|Filename|Flags|Languages|Name|Parameters|Root|Source|StatusMsg|Subkey|Type|Types|ValueData|ValueName|ValueType|WorkingDir)(?=\\s*:)"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"name": "keyword.other.inno",
|
39
|
+
"match": "\\b(?i)(BeveledLabel|MyAppName|MyAppVerName|MyDescription)\\b"
|
40
|
+
},
|
41
|
+
{
|
42
|
+
"name": "entity.name.section.inno",
|
43
|
+
"match": "^(?i)\\[(Components|CustomMessages|Dirs|Files|Icons|INI|InstallDelete|LangOptions|Languages|Messages|Registry|Run|Setup|Tasks|Types|UninstallDelete|UninstallRun)\\]$"
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"name": "constant.language.inno",
|
47
|
+
"match": "\\b(?i)(DisableAppendDir|DontMergeDuplicateFiles|MessagesFile|UninstallIconFile|UninstallIconName|UninstallStyle|WizardSmallImageBackColor|WizardStyle)\\b"
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"name": "keyword.operator.comparison.inno",
|
51
|
+
"match": "="
|
52
|
+
},
|
53
|
+
{
|
54
|
+
"name": "constant.numeric.inno",
|
55
|
+
"match": "\\b((0(x|X)[0-9a-fA-F]+)|([0-9]+(\\.[0-9]+)?))\\b"
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"name": "constant.language.inno",
|
59
|
+
"match": "\\b(?i)(32bit|64bit|admin|allowunsafefiles|append|auto|binary|bzip|checkablealone|checkedonce|clAqua|clBlack|clBlue|clFuchsia|clGray|clGreen|clLime|clMaroon|clNavy|clOlive|closeonexit|clPurple|clRed|clSilver|clTeal|clWhite|clYellow|compact|comparetimestamp|compiler|confirmoverwrite|createallsubdirs|createkeyifdoesntexist|createonlyiffileexists|createvalueifdoesntexist|current|custom|deleteafterinstall|deletekey|deletevalue|desktopicon|dirifempty|disablenouninstallwarning|dontcloseonexit|dontcopy|dontcreatekey|dontinheritcheck|dontverifychecksum|dword|excludefromshowinnewinstall|exclusive|expandsz|external|fast|files|filesandordirs|fixed|foldershortcut|fontisnttruetype|full|gacinstall|help|hidewizard|ia64|ignoreversion|iscustom|isreadme|lefttoright|locale|lowest|lzma|lzma2|main|max|modify|multisz|new|no|nocompression|noencryption|noerror|none|noregerror|normal|nowait|onlyifdoesntexist|overwrite|overwritereadonly|postinstall|poweruser|preservestringtype|preventpinning|program|promptifolder|qword|read|readexec|readme|recursesubdirs|regserver|regtypelib|replacesameversion|restart|restartreplace|runascurrentuser|runasoriginaluser|runhidden|runminimized|setntfscompression|sharedfile|shellexec|skipifdoesntexist|skipifnotsilent|skipifsilent|skipifsourcedoesntexist|solidbreak|sortfilesbyextension|sortfilesbyname|string|toptobottom|touch|uilanguage|ultra|unchecked|uninsalwaysuninstall|uninsclearvalue|uninsdeleteentry|uninsdeletekey|uninsdeletekeyifempty|uninsdeletesection|uninsdeletesectionifempty|uninsdeletevalue|uninsneveruninstall|uninsnosharedfileprompt|uninsremovereadonly|uninsrestartdelete|unsetntfscompression|useapppaths|waituntilidle|waituntilterminated|x64|x86|yes|zip)\\b"
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"name": "constant.language.inno",
|
63
|
+
"match": "\\b(?i)(aa|ab|ae|af|ak|am|an|ar|as|av|ay|az|ba|be|bg|bh|bi|bm|bn|bo|br|bs|ca|ce|ch|co|cr|cs|cu|cv|cy|da|de|dv|dz|ee|el|en|eo|es|et|eu|fa|ff|fi|fj|fo|fr|fy|ga|gd|gl|gn|gu|gv|ha|he|hi|ho|hr|ht|hu|hy|hz|ia|id|ie|ig|ii|ik|io|is|it|iu|ja|jv|ka|kg|ki|kj|kk|kl|km|kn|ko|kr|ks|ku|kv|kw|ky|la|lb|lg|li|ln|lo|lt|lu|lv|mg|mh|mi|mk|mk|ml|mn|mr|ms|mt|my|na|nb|nd|ne|ng|nl|nn|no|nr|nv|ny|oc|oj|om|or|os|pa|pi|pl|ps|pt|qt|qu|rg|rm|rn|ro|ru|rw|sa|sc|sd|se|sg|si|sk|sl|sm|sn|so|sq|sr|ss|st|su|sv|sw|ta|te|tg|th|ti|tk|tl|tn|to|tr|ts|tt|tw|ty|ug|uk|ur|uz|ve|vi|vo|wa|wo|xh|yi|yo|zh)(?:\\.\\w)?\\b"
|
64
|
+
},
|
65
|
+
{
|
66
|
+
"name": "constant.other.inno",
|
67
|
+
"match": "(?i){(app|cf32|cf64|cf|cmd|commonappdata|commondocs|computername|dao|dotnet11|dotnet2032|dotnet2064|dotnet20|dotnet4032|dotnet4064|dotnet40|fonts|groupname|group|hwnd|language|localappdata|log|pf32|pf64|pf|sd|sendto|srcexe|src|sysuserinfoname|sysuserinfoorg|syswow64|sys|tmp|uninstallexe|usercf|userinfoname|userinfoorg|userinfoserial|username|userpf|win|wizardhwnd)}"
|
68
|
+
},
|
69
|
+
{
|
70
|
+
"name": "variable.other.inno",
|
71
|
+
"match": "%\\w+"
|
72
|
+
},
|
73
|
+
{
|
74
|
+
"name": "string.quoted.back.inno",
|
75
|
+
"begin": "\"",
|
76
|
+
"end": "\"",
|
77
|
+
"patterns": [
|
78
|
+
{
|
79
|
+
"name": "constant.other.inno",
|
80
|
+
"match": "(?i){(app|cf32|cf64|cf|cmd|commonappdata|commondocs|computername|dao|dotnet11|dotnet2032|dotnet2064|dotnet20|dotnet4032|dotnet4064|dotnet40|fonts|groupname|group|hwnd|language|localappdata|log|pf32|pf64|pf|sd|sendto|srcexe|src|sysuserinfoname|sysuserinfoorg|syswow64|sys|tmp|uninstallexe|usercf|userinfoname|userinfoorg|userinfoserial|username|userpf|win|wizardhwnd)}"
|
81
|
+
},
|
82
|
+
{
|
83
|
+
"name": "variable.other.inno",
|
84
|
+
"match": "%\\w+"
|
85
|
+
}
|
86
|
+
],
|
87
|
+
"beginCaptures": {
|
88
|
+
"0": {
|
89
|
+
"name": "punctuation.definition.string.begin.inno"
|
90
|
+
}
|
91
|
+
},
|
92
|
+
"endCaptures": {
|
93
|
+
"0": {
|
94
|
+
"name": "punctuation.definition.string.end.inno"
|
95
|
+
}
|
96
|
+
}
|
97
|
+
},
|
98
|
+
{
|
99
|
+
"name": "string.quoted.back.inno",
|
100
|
+
"begin": "'",
|
101
|
+
"end": "'",
|
102
|
+
"patterns": [
|
103
|
+
{
|
104
|
+
"name": "constant.other.inno",
|
105
|
+
"match": "(?i){(app|cf32|cf64|cf|cmd|commonappdata|commondocs|computername|dao|dotnet11|dotnet2032|dotnet2064|dotnet20|dotnet4032|dotnet4064|dotnet40|fonts|groupname|group|hwnd|language|localappdata|log|pf32|pf64|pf|sd|sendto|srcexe|src|sysuserinfoname|sysuserinfoorg|syswow64|sys|tmp|uninstallexe|usercf|userinfoname|userinfoorg|userinfoserial|username|userpf|win|wizardhwnd)}"
|
106
|
+
},
|
107
|
+
{
|
108
|
+
"name": "variable.other.inno",
|
109
|
+
"match": "%\\w+"
|
110
|
+
}
|
111
|
+
],
|
112
|
+
"beginCaptures": {
|
113
|
+
"0": {
|
114
|
+
"name": "punctuation.definition.string.begin.inno"
|
115
|
+
}
|
116
|
+
},
|
117
|
+
"endCaptures": {
|
118
|
+
"0": {
|
119
|
+
"name": "punctuation.definition.string.end.inno"
|
120
|
+
}
|
121
|
+
}
|
122
|
+
},
|
123
|
+
{
|
124
|
+
"name": "comment.line.semicolon.inno",
|
125
|
+
"match": "^\\s*;.*$",
|
126
|
+
"captures": {
|
127
|
+
"1": {
|
128
|
+
"name": "punctuation.definition.comment.inno"
|
129
|
+
}
|
130
|
+
}
|
131
|
+
}
|
132
|
+
]
|
133
|
+
}
|
@@ -0,0 +1,500 @@
|
|
1
|
+
{
|
2
|
+
"name": "Readline Init File",
|
3
|
+
"scopeName": "source.inputrc",
|
4
|
+
"patterns": [
|
5
|
+
{
|
6
|
+
"include": "#main"
|
7
|
+
}
|
8
|
+
],
|
9
|
+
"repository": {
|
10
|
+
"comment": {
|
11
|
+
"name": "comment.line.number-sign.ini.inputrc",
|
12
|
+
"begin": "#",
|
13
|
+
"end": "$",
|
14
|
+
"beginCaptures": {
|
15
|
+
"0": {
|
16
|
+
"name": "punctuation.definition.comment.ini.inputrc"
|
17
|
+
}
|
18
|
+
}
|
19
|
+
},
|
20
|
+
"conditional": {
|
21
|
+
"patterns": [
|
22
|
+
{
|
23
|
+
"name": "meta.conditional.inputrc",
|
24
|
+
"begin": "(?i)^\\s*((\\$)if)(?=\\s|$)(.*)",
|
25
|
+
"end": "(?i)^\\s*((\\$)endif)(?=\\s|$)",
|
26
|
+
"patterns": [
|
27
|
+
{
|
28
|
+
"include": "#main"
|
29
|
+
}
|
30
|
+
],
|
31
|
+
"beginCaptures": {
|
32
|
+
"1": {
|
33
|
+
"name": "keyword.control.flow.if.inputrc"
|
34
|
+
},
|
35
|
+
"2": {
|
36
|
+
"name": "punctuation.definition.directive.inputrc"
|
37
|
+
},
|
38
|
+
"3": {
|
39
|
+
"patterns": [
|
40
|
+
{
|
41
|
+
"include": "#conditions"
|
42
|
+
}
|
43
|
+
]
|
44
|
+
}
|
45
|
+
},
|
46
|
+
"endCaptures": {
|
47
|
+
"1": {
|
48
|
+
"name": "keyword.control.flow.endif.inputrc"
|
49
|
+
},
|
50
|
+
"2": {
|
51
|
+
"name": "punctuation.definition.directive.inputrc"
|
52
|
+
}
|
53
|
+
}
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"match": "(?i)^\\s*((\\$)(else|endif))(?=\\s|$)",
|
57
|
+
"beginCaptures": {
|
58
|
+
"1": {
|
59
|
+
"name": "keyword.control.flow.$3.inputrc"
|
60
|
+
},
|
61
|
+
"2": {
|
62
|
+
"name": "punctuation.definition.directive.inputrc"
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
]
|
67
|
+
},
|
68
|
+
"conditions": {
|
69
|
+
"patterns": [
|
70
|
+
{
|
71
|
+
"match": "(?i)(?:^|\\G)\\s*(mode)\\s*(==|=|!=)\\s*(?:(emacs|vi)(?=\\s|$))?",
|
72
|
+
"captures": {
|
73
|
+
"1": {
|
74
|
+
"name": "variable.parameter.condition.mode.inputrc"
|
75
|
+
},
|
76
|
+
"2": {
|
77
|
+
"name": "keyword.operator.comparison.inputrc"
|
78
|
+
},
|
79
|
+
"3": {
|
80
|
+
"name": "constant.language.editing-mode.inputrc"
|
81
|
+
}
|
82
|
+
}
|
83
|
+
},
|
84
|
+
{
|
85
|
+
"match": "(?i)(?:^|\\G)\\s*(term)\\s*(==|=|!=)\\s*(\\S.*?)\\s*$",
|
86
|
+
"captures": {
|
87
|
+
"1": {
|
88
|
+
"name": "variable.parameter.condition.term.inputrc"
|
89
|
+
},
|
90
|
+
"2": {
|
91
|
+
"name": "keyword.operator.comparison.inputrc"
|
92
|
+
},
|
93
|
+
"3": {
|
94
|
+
"name": "constant.language.terminal-type.inputrc"
|
95
|
+
}
|
96
|
+
}
|
97
|
+
},
|
98
|
+
{
|
99
|
+
"match": "(?i)(?:^|\\G)\\s*(version)\\s*(==|=|!=|\u003c=|\u003e=|\u003c|\u003e)\\s*(?:([-+]?[.\\d]+))?",
|
100
|
+
"captures": {
|
101
|
+
"1": {
|
102
|
+
"name": "variable.parameter.condition.version.inputrc"
|
103
|
+
},
|
104
|
+
"2": {
|
105
|
+
"name": "keyword.operator.comparison.inputrc"
|
106
|
+
},
|
107
|
+
"3": {
|
108
|
+
"patterns": [
|
109
|
+
{
|
110
|
+
"include": "etc#num"
|
111
|
+
}
|
112
|
+
]
|
113
|
+
}
|
114
|
+
}
|
115
|
+
},
|
116
|
+
{
|
117
|
+
"match": "(?i)(?:^|\\G)\\s*([^\\s!=#]+)\\s*(==|=|!=)\\s*(?:(on|off)(?=\\s|$)|(\\S.*))?",
|
118
|
+
"captures": {
|
119
|
+
"1": {
|
120
|
+
"name": "variable.parameter.condition.named.inputrc"
|
121
|
+
},
|
122
|
+
"2": {
|
123
|
+
"name": "keyword.operator.comparison.inputrc"
|
124
|
+
},
|
125
|
+
"3": {
|
126
|
+
"name": "constant.logical.bool.boolean.${3:/downcase}.inputrc"
|
127
|
+
},
|
128
|
+
"4": {
|
129
|
+
"name": "string.unquoted.inputrc"
|
130
|
+
}
|
131
|
+
}
|
132
|
+
},
|
133
|
+
{
|
134
|
+
"match": "(?i)(?:^|\\G)\\s*([^\\s!=#]+)\\s*$",
|
135
|
+
"captures": {
|
136
|
+
"1": {
|
137
|
+
"name": "variable.parameter.condition.application.inputrc"
|
138
|
+
}
|
139
|
+
}
|
140
|
+
}
|
141
|
+
]
|
142
|
+
},
|
143
|
+
"escapes": {
|
144
|
+
"patterns": [
|
145
|
+
{
|
146
|
+
"name": "constant.character.escape.alert.inputrc",
|
147
|
+
"match": "\\\\a"
|
148
|
+
},
|
149
|
+
{
|
150
|
+
"name": "constant.character.escape.backspace.inputrc",
|
151
|
+
"match": "\\\\b"
|
152
|
+
},
|
153
|
+
{
|
154
|
+
"name": "constant.character.escape.delete.inputrc",
|
155
|
+
"match": "\\\\d"
|
156
|
+
},
|
157
|
+
{
|
158
|
+
"name": "constant.character.escape.form-feed.inputrc",
|
159
|
+
"match": "\\\\f"
|
160
|
+
},
|
161
|
+
{
|
162
|
+
"name": "constant.character.escape.newline.inputrc",
|
163
|
+
"match": "\\\\n"
|
164
|
+
},
|
165
|
+
{
|
166
|
+
"name": "constant.character.escape.carriage-return.inputrc",
|
167
|
+
"match": "\\\\r"
|
168
|
+
},
|
169
|
+
{
|
170
|
+
"name": "constant.character.escape.horizontal-tab.inputrc",
|
171
|
+
"match": "\\\\t"
|
172
|
+
},
|
173
|
+
{
|
174
|
+
"name": "constant.character.escape.vertical-tab.inputrc",
|
175
|
+
"match": "\\\\v"
|
176
|
+
},
|
177
|
+
{
|
178
|
+
"name": "constant.character.escape.control-prefix.inputrc",
|
179
|
+
"match": "\\\\C"
|
180
|
+
},
|
181
|
+
{
|
182
|
+
"name": "constant.character.escape.meta-prefix.inputrc",
|
183
|
+
"match": "\\\\M"
|
184
|
+
},
|
185
|
+
{
|
186
|
+
"name": "constant.character.escape.literal.inputrc",
|
187
|
+
"match": "\\\\e"
|
188
|
+
},
|
189
|
+
{
|
190
|
+
"name": "constant.character.escape.backslash.inputrc",
|
191
|
+
"match": "\\{2}"
|
192
|
+
},
|
193
|
+
{
|
194
|
+
"name": "constant.character.escape.quote.double.inputrc",
|
195
|
+
"match": "\\\\\""
|
196
|
+
},
|
197
|
+
{
|
198
|
+
"name": "constant.character.escape.quote.single.inputrc",
|
199
|
+
"match": "\\\\'"
|
200
|
+
},
|
201
|
+
{
|
202
|
+
"name": "constant.character.escape.codepoint.octal.inputrc",
|
203
|
+
"match": "\\\\[0-7]{1,3}"
|
204
|
+
},
|
205
|
+
{
|
206
|
+
"name": "constant.character.escape.codepoint.hex.inputrc",
|
207
|
+
"match": "\\\\x[a-fA-F0-9]{1,2}"
|
208
|
+
}
|
209
|
+
]
|
210
|
+
},
|
211
|
+
"include": {
|
212
|
+
"name": "meta.include.inputrc",
|
213
|
+
"contentName": "string.unquoted.file.path.inputrc",
|
214
|
+
"begin": "^\\s*((\\$)include)(?=\\s|$)",
|
215
|
+
"end": "$",
|
216
|
+
"patterns": [
|
217
|
+
{
|
218
|
+
"include": "#escapes"
|
219
|
+
}
|
220
|
+
],
|
221
|
+
"beginCaptures": {
|
222
|
+
"1": {
|
223
|
+
"name": "keyword.control.directive.include.inputrc"
|
224
|
+
},
|
225
|
+
"2": {
|
226
|
+
"name": "punctuation.definition.directive.inputrc"
|
227
|
+
}
|
228
|
+
}
|
229
|
+
},
|
230
|
+
"keyBinding": {
|
231
|
+
"name": "meta.key-binding.inputrc",
|
232
|
+
"begin": "(?i)^\\s*(?!set(?:\\s|$)|\\$)(?=[^\\s#])",
|
233
|
+
"end": "$",
|
234
|
+
"patterns": [
|
235
|
+
{
|
236
|
+
"include": "#keyName"
|
237
|
+
},
|
238
|
+
{
|
239
|
+
"begin": ":[ \\t]*",
|
240
|
+
"end": "(?=$)",
|
241
|
+
"patterns": [
|
242
|
+
{
|
243
|
+
"name": "string.quoted.double.macro.inputrc",
|
244
|
+
"begin": "\\G\"",
|
245
|
+
"end": "\"|(?=$)",
|
246
|
+
"patterns": [
|
247
|
+
{
|
248
|
+
"include": "#escapes"
|
249
|
+
}
|
250
|
+
],
|
251
|
+
"beginCaptures": {
|
252
|
+
"0": {
|
253
|
+
"name": "punctuation.definition.string.begin.inputrc"
|
254
|
+
}
|
255
|
+
},
|
256
|
+
"endCaptures": {
|
257
|
+
"0": {
|
258
|
+
"name": "punctuation.definition.string.end.inputrc"
|
259
|
+
}
|
260
|
+
}
|
261
|
+
},
|
262
|
+
{
|
263
|
+
"name": "string.quoted.single.macro.inputrc",
|
264
|
+
"begin": "\\G'",
|
265
|
+
"end": "'|(?=$)",
|
266
|
+
"patterns": [
|
267
|
+
{
|
268
|
+
"include": "#escapes"
|
269
|
+
}
|
270
|
+
],
|
271
|
+
"beginCaptures": {
|
272
|
+
"0": {
|
273
|
+
"name": "punctuation.definition.string.begin.inputrc"
|
274
|
+
}
|
275
|
+
},
|
276
|
+
"endCaptures": {
|
277
|
+
"0": {
|
278
|
+
"name": "punctuation.definition.string.end.inputrc"
|
279
|
+
}
|
280
|
+
}
|
281
|
+
},
|
282
|
+
{
|
283
|
+
"name": "entity.name.function.inputrc",
|
284
|
+
"match": "\\G([-\\w]+)"
|
285
|
+
},
|
286
|
+
{
|
287
|
+
"name": "comment.line.ignored.inputrc",
|
288
|
+
"begin": "(?\u003c=['\"\\s])\\s*(?=\\S)",
|
289
|
+
"end": "$"
|
290
|
+
}
|
291
|
+
],
|
292
|
+
"beginCaptures": {
|
293
|
+
"0": {
|
294
|
+
"patterns": [
|
295
|
+
{
|
296
|
+
"include": "etc#colon"
|
297
|
+
}
|
298
|
+
]
|
299
|
+
}
|
300
|
+
}
|
301
|
+
}
|
302
|
+
]
|
303
|
+
},
|
304
|
+
"keyName": {
|
305
|
+
"patterns": [
|
306
|
+
{
|
307
|
+
"name": "meta.key-name.quoted.inputrc",
|
308
|
+
"begin": "\\G(\")",
|
309
|
+
"end": "(\")|(?=$)",
|
310
|
+
"patterns": [
|
311
|
+
{
|
312
|
+
"include": "#keyNameInnards"
|
313
|
+
}
|
314
|
+
],
|
315
|
+
"beginCaptures": {
|
316
|
+
"0": {
|
317
|
+
"name": "string.quoted.double.inputrc"
|
318
|
+
},
|
319
|
+
"1": {
|
320
|
+
"name": "punctuation.definition.string.begin.inputrc"
|
321
|
+
}
|
322
|
+
},
|
323
|
+
"endCaptures": {
|
324
|
+
"0": {
|
325
|
+
"name": "string.quoted.double.inputrc"
|
326
|
+
},
|
327
|
+
"1": {
|
328
|
+
"name": "punctuation.definition.string.end.inputrc"
|
329
|
+
}
|
330
|
+
}
|
331
|
+
},
|
332
|
+
{
|
333
|
+
"name": "meta.key-name.quoted.inputrc",
|
334
|
+
"begin": "\\G(')",
|
335
|
+
"end": "(')|(?=$)",
|
336
|
+
"patterns": [
|
337
|
+
{
|
338
|
+
"include": "#keyNameInnards"
|
339
|
+
}
|
340
|
+
],
|
341
|
+
"beginCaptures": {
|
342
|
+
"0": {
|
343
|
+
"name": "string.quoted.single.inputrc"
|
344
|
+
},
|
345
|
+
"1": {
|
346
|
+
"name": "punctuation.definition.string.begin.inputrc"
|
347
|
+
}
|
348
|
+
},
|
349
|
+
"endCaptures": {
|
350
|
+
"0": {
|
351
|
+
"name": "string.quoted.single.inputrc"
|
352
|
+
},
|
353
|
+
"1": {
|
354
|
+
"name": "punctuation.definition.string.end.inputrc"
|
355
|
+
}
|
356
|
+
}
|
357
|
+
},
|
358
|
+
{
|
359
|
+
"name": "meta.key-name.unquoted.inputrc",
|
360
|
+
"match": "\\G((?:[^\\\\:\\s]|\\\\.)+)",
|
361
|
+
"captures": {
|
362
|
+
"1": {
|
363
|
+
"patterns": [
|
364
|
+
{
|
365
|
+
"include": "#keyNameInnards"
|
366
|
+
}
|
367
|
+
]
|
368
|
+
}
|
369
|
+
}
|
370
|
+
}
|
371
|
+
]
|
372
|
+
},
|
373
|
+
"keyNameInnards": {
|
374
|
+
"patterns": [
|
375
|
+
{
|
376
|
+
"match": "(?i)(-)?\\b(CONTROL|DEL|ESCAPE|ESC|LFD|META|NEWLINE|RETURN|RET|RUBOUT|SPACE|SPC|TAB)\\b",
|
377
|
+
"captures": {
|
378
|
+
"1": {
|
379
|
+
"name": "punctuation.separator.dash.hyphen.inputrc"
|
380
|
+
},
|
381
|
+
"2": {
|
382
|
+
"name": "constant.character.key-name.symbolic.inputrc"
|
383
|
+
}
|
384
|
+
}
|
385
|
+
},
|
386
|
+
{
|
387
|
+
"include": "#escapes"
|
388
|
+
},
|
389
|
+
{
|
390
|
+
"match": "(-)?(\\S)",
|
391
|
+
"captures": {
|
392
|
+
"1": {
|
393
|
+
"name": "punctuation.separator.dash.hyphen.inputrc"
|
394
|
+
},
|
395
|
+
"2": {
|
396
|
+
"name": "constant.character.key-name.literal.inputrc"
|
397
|
+
}
|
398
|
+
}
|
399
|
+
}
|
400
|
+
]
|
401
|
+
},
|
402
|
+
"main": {
|
403
|
+
"patterns": [
|
404
|
+
{
|
405
|
+
"include": "#comment"
|
406
|
+
},
|
407
|
+
{
|
408
|
+
"include": "#include"
|
409
|
+
},
|
410
|
+
{
|
411
|
+
"include": "#conditional"
|
412
|
+
},
|
413
|
+
{
|
414
|
+
"include": "#variable"
|
415
|
+
},
|
416
|
+
{
|
417
|
+
"include": "#keyBinding"
|
418
|
+
}
|
419
|
+
]
|
420
|
+
},
|
421
|
+
"variable": {
|
422
|
+
"begin": "(?i)^\\s*(set)(?=\\s|$)[ \\t]*",
|
423
|
+
"end": "$",
|
424
|
+
"patterns": [
|
425
|
+
{
|
426
|
+
"begin": "(?i)\\G(bell-style)(?=\\s|$)",
|
427
|
+
"end": "(?i)(visible|audible|none)(?=\\s|$)|(?=$|#|\\S)",
|
428
|
+
"beginCaptures": {
|
429
|
+
"1": {
|
430
|
+
"name": "variable.assignment.inputrc"
|
431
|
+
}
|
432
|
+
},
|
433
|
+
"endCaptures": {
|
434
|
+
"1": {
|
435
|
+
"name": "constant.language.bell-style.inputrc"
|
436
|
+
}
|
437
|
+
}
|
438
|
+
},
|
439
|
+
{
|
440
|
+
"begin": "(?i)\\G(editing-mode)(?=\\s|$)",
|
441
|
+
"end": "(?i)(emacs|vi)(?=\\s|$)|(?=$|#|\\S)",
|
442
|
+
"beginCaptures": {
|
443
|
+
"1": {
|
444
|
+
"name": "variable.assignment.inputrc"
|
445
|
+
}
|
446
|
+
},
|
447
|
+
"endCaptures": {
|
448
|
+
"1": {
|
449
|
+
"name": "constant.language.editing-mode.inputrc"
|
450
|
+
}
|
451
|
+
}
|
452
|
+
},
|
453
|
+
{
|
454
|
+
"contentName": "string.unquoted.inputc",
|
455
|
+
"begin": "(?i)\\G(comment-begin|emacs-mode-string|vi-(?:cmd|ins)-mode-string)(?=\\s|$)\\s*",
|
456
|
+
"end": "(?=$)",
|
457
|
+
"patterns": [
|
458
|
+
{
|
459
|
+
"include": "#escapes"
|
460
|
+
}
|
461
|
+
],
|
462
|
+
"beginCaptures": {
|
463
|
+
"1": {
|
464
|
+
"name": "variable.assignment.inputrc"
|
465
|
+
}
|
466
|
+
}
|
467
|
+
},
|
468
|
+
{
|
469
|
+
"begin": "(?i)\\G([-a-z0-9]+)(?=\\s|$)",
|
470
|
+
"end": "(?i)(?:(on|off)(?=\\s|$)|([^#\\s]+))|(?=$|#)",
|
471
|
+
"beginCaptures": {
|
472
|
+
"1": {
|
473
|
+
"name": "variable.assignment.inputrc"
|
474
|
+
}
|
475
|
+
},
|
476
|
+
"endCaptures": {
|
477
|
+
"1": {
|
478
|
+
"name": "constant.logical.bool.boolean.${1:/downcase}.inputrc"
|
479
|
+
},
|
480
|
+
"2": {
|
481
|
+
"patterns": [
|
482
|
+
{
|
483
|
+
"include": "etc#num"
|
484
|
+
},
|
485
|
+
{
|
486
|
+
"include": "etc#bareword"
|
487
|
+
}
|
488
|
+
]
|
489
|
+
}
|
490
|
+
}
|
491
|
+
}
|
492
|
+
],
|
493
|
+
"beginCaptures": {
|
494
|
+
"1": {
|
495
|
+
"name": "keyword.operator.set.inputrc"
|
496
|
+
}
|
497
|
+
}
|
498
|
+
}
|
499
|
+
}
|
500
|
+
}
|