Add language for Windows Registry (.reg) files (#4217)

* Add language for Windows Registry (.reg) files

* Rename language to official name of file type.

* Use "Windows Registry Entries"
This commit is contained in:
Ԝеѕ 2018-09-03 05:20:42 -04:00 коммит произвёл Paul Chaignon
Родитель 76fce4b1a1
Коммит b5e2687b2e
7 изменённых файлов: 93 добавлений и 0 удалений

3
.gitmodules поставляемый
Просмотреть файл

@ -559,6 +559,9 @@
[submodule "vendor/grammars/language-reason"]
path = vendor/grammars/language-reason
url = https://github.com/reasonml-editor/language-reason
[submodule "vendor/grammars/language-reg"]
path = vendor/grammars/language-reg
url = https://github.com/bsara/language-reg
[submodule "vendor/grammars/language-regexp"]
path = vendor/grammars/language-regexp
url = https://github.com/Alhadis/language-regexp

Просмотреть файл

@ -473,6 +473,8 @@ vendor/grammars/language-povray:
vendor/grammars/language-reason:
- source.reason
- source.reason.hover.type
vendor/grammars/language-reg:
- source.reg
vendor/grammars/language-regexp:
- source.regexp
- source.regexp.extended

Просмотреть файл

@ -5077,6 +5077,15 @@ WebIDL:
codemirror_mode: webidl
codemirror_mime_type: text/x-webidl
language_id: 395
Windows Registry Entries:
type: data
extensions:
- ".reg"
tm_scope: source.reg
ace_mode: ini
codemirror_mode: properties
codemirror_mime_type: text/x-properties
language_id: 969674868
World of Warcraft Addon Data:
type: data
extensions:

Просмотреть файл

@ -0,0 +1,51 @@
Windows Registry Editor Version 5.00
; Comment Comment Comment
[HKLM\SOFTWARE\Fake_Key\Fake_SubKey_1] ; Comment Comment Comment
[HKLM\SOFTWARE\Fake_Key\Fake_SubKey_1\Fake_SubKey_2]
@=- ; Comment Comment Comment
[HKLM\SOFTWARE\Fake_SubKey\Fake_SubKey_1\Fake_SubKey_2\Fake_SubKey_3]
@="Default Value" ; Comment Comment Comment
"String Value"="My String Value" ; Comment Comment Comment
"String Value With Escaped Chars"="C:\\Blah\\Blah\\Blee" ; Comment Comment Comment
"Binary Value"=hexadecimal
"DWORD Value"=dword:00000005
"Bit Value"=0
"Binary Value"=hex:25,53,79,73,74,65,6d,52,6f,6f,74,25,00
"Value D"=hex(0):<REG_NONE (as comma-delimited list of hexadecimal values)> ; Comment Comment Comment
"Value E"=hex(1):<REG_SZ (as comma-delimited list of hexadecimal values representing a UTF-16LE NUL-terminated string)>
"Expandable String Value"=hex(2):25,53,79,73,74,65,6d,52,6f,6f,74,25,00
"Value G"=hex(3):<Binary data (as comma-delimited list of hexadecimal values)> ; equal to "Value B"
"Value H"=hex(4):<DWORD value (as comma-delimited list of 4 hexadecimal values, in little endian byte order)>
"Value I"=hex(5):<DWORD value (as comma-delimited list of 4 hexadecimal values, in big endian byte order)>
"Multi String Value"=hex(7):25,53,79,73,74,65,6d,52,6f,6f,74,25,00\
25,53,79,73,74,65,6d,52,6f,6f,74,25,00\
25,53,79,73,74,65,6d,52,6f,6f,74,25,00\
25,53,79,73,74,65,6d,52,6f,6f,74,25,00\
"Value K"=hex(8):<REG_RESOURCE_LIST (as comma-delimited list of hexadecimal values)>
"Value L"=hex(a):<REG_RESOURCE_REQUIREMENTS_LIST (as comma-delimited list of hexadecimal values)>
"Value M"=hex(b):<QWORD value (as comma-delimited list of 8 hexadecimal values, in little endian byte order)>
"Deleted Value"=- ; Comment Comment Comment
[HKEY_LOCAL_MACHINE]
[HKLM]
[HKEY_CURRENT_CONFIG]
[HKCC]
[HKEY_CLASSES_ROOT]
[HKCR]
[HKEY_CURRENT_USER]
[HKCU]
[HKEY_USERS]
[HKU]
[HKEY_PERFORMANCE_DATA]
[HKEY_DYN_DATA]

1
vendor/README.md поставляемый
Просмотреть файл

@ -403,6 +403,7 @@ This is a list of grammars that Linguist selects to provide syntax highlighting
- **Web Ontology Language:** [textmate/xml.tmbundle](https://github.com/textmate/xml.tmbundle)
- **WebAssembly:** [Alhadis/language-webassembly](https://github.com/Alhadis/language-webassembly)
- **WebIDL:** [andik/IDL-Syntax](https://github.com/andik/IDL-Syntax)
- **Windows Registry Entries:** [bsara/language-reg](https://github.com/bsara/language-reg)
- **wisp:** [atom/language-clojure](https://github.com/atom/language-clojure)
- **World of Warcraft Addon Data:** [nebularg/language-toc-wow](https://github.com/nebularg/language-toc-wow)
- **X BitMap:** [textmate/c.tmbundle](https://github.com/textmate/c.tmbundle)

1
vendor/grammars/language-reg поставляемый Submodule

@ -0,0 +1 @@
Subproject commit 9850e9b9da731f019874ed77394eef185bbab815

26
vendor/licenses/grammar/language-reg.txt поставляемый Normal file
Просмотреть файл

@ -0,0 +1,26 @@
---
type: grammar
name: language-reg
license: mit
---
The MIT License (MIT)
Copyright (c) 2015 [Brandon Sara](http://bsara.github.io)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.