Skip to content

Commit f655f15

Browse files
TextMate / language-configuration: include more yaml files in fileMatch (SchemaStore#5182)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 7d91c46 commit f655f15

File tree

3 files changed

+45
-2
lines changed

3 files changed

+45
-2
lines changed

src/api/json/catalog.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6000,7 +6000,8 @@
60006000
"fileMatch": [
60016001
"*.tmLanguage.json",
60026002
"*.tmLanguage.yaml",
6003-
"*.tmLanguage.yml"
6003+
"*.tmLanguage.yml",
6004+
"*.yaml-tmlanguage"
60046005
],
60056006
"url": "https://www.schemastore.org/tmlanguage.json"
60066007
},
@@ -8100,7 +8101,11 @@
81008101
{
81018102
"name": "Language configuration",
81028103
"description": "Configuration file for language features in VS Code and Visual Studio",
8103-
"fileMatch": ["language-configuration.json"],
8104+
"fileMatch": [
8105+
"language-configuration.json",
8106+
"language-configuration.yaml",
8107+
"language-configuration.yml"
8108+
],
81048109
"url": "https://www.schemastore.org/language-configuration.json"
81058110
},
81068111
{
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# yaml-language-server: $schema=../../schemas/json/language-configuration.json
2+
3+
autoClosingPairs:
4+
- { open: '[', close: ']', notIn: [string] }
5+
- { open: '(', close: ')', notIn: [string] }
6+
- { open: '"', close: '"', notIn: [string, comment] }
7+
8+
brackets:
9+
- ['[', ']']
10+
- ['(', ')']
11+
12+
comments:
13+
lineComment: '//'
14+
blockComment: ['/*', '*/']
15+
16+
folding:
17+
markers:
18+
start: ^\\s*//\\s*#?region\\b
19+
end: ^\\s*//\\s*#?endregion\\b
20+
21+
surroundingPairs:
22+
- { open: '[', close: ']' }
23+
- { open: '(', close: ')' }
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# yaml-language-server: $schema=../../schemas/json/tmlanguage.json
2+
3+
name: My Grammar
4+
scopeName: source.lang
5+
fileTypes:
6+
- lang
7+
8+
patterns:
9+
- include: '#comments'
10+
11+
repository:
12+
comments:
13+
patterns:
14+
- name: comment.lang
15+
match: ^#.*$

0 commit comments

Comments
 (0)