Skip to content

Commit 9bec34e

Browse files
committed
Rename '*.yaml' -> 'syntax.yaml'
This way it's possible to configure ST to open our custom schemas with AAAPackageDev YAML syntax.
1 parent 9918c25 commit 9bec34e

11 files changed

+22
-22
lines changed

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ all:
55

66
test: release
77
# Run tests
8-
./node_modules/.bin/syntaxdev test --tests test/**/*.py --syntax grammars/MagicPython.yaml
9-
./node_modules/.bin/syntaxdev test --tests test/**/*.re --syntax grammars/MagicRegExp.yaml
8+
./node_modules/.bin/syntaxdev test --tests test/**/*.py --syntax grammars/MagicPython.syntax.yaml
9+
./node_modules/.bin/syntaxdev test --tests test/**/*.re --syntax grammars/MagicRegExp.syntax.yaml
1010

1111
# Check if the version specified in "package.json" matches the latest git tag
1212
@if [ \
@@ -17,8 +17,8 @@ test: release
1717
then echo "Error: package.version != git.tag" && exit 1 ; fi
1818

1919
release:
20-
./node_modules/.bin/syntaxdev build-plist --in grammars/MagicPython.yaml --out grammars/MagicPython.tmLanguage
21-
./node_modules/.bin/syntaxdev build-plist --in grammars/MagicRegExp.yaml --out grammars/MagicRegExp.tmLanguage
20+
./node_modules/.bin/syntaxdev build-plist --in grammars/MagicPython.syntax.yaml --out grammars/MagicPython.tmLanguage
21+
./node_modules/.bin/syntaxdev build-plist --in grammars/MagicRegExp.syntax.yaml --out grammars/MagicRegExp.tmLanguage
2222

23-
./node_modules/.bin/syntaxdev build-cson --in grammars/MagicPython.yaml --out grammars/MagicPython.cson
24-
./node_modules/.bin/syntaxdev build-cson --in grammars/MagicRegExp.yaml --out grammars/MagicRegExp.cson
23+
./node_modules/.bin/syntaxdev build-cson --in grammars/MagicPython.syntax.yaml --out grammars/MagicPython.cson
24+
./node_modules/.bin/syntaxdev build-cson --in grammars/MagicRegExp.syntax.yaml --out grammars/MagicRegExp.cson

grammars/MagicPython.cson

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# AUTOGENERATED FROM grammars/MagicPython.yaml
1+
# AUTOGENERATED FROM grammars/MagicPython.syntax.yaml
22
name: "MagicPython"
33
scopeName: "source.python"
44
fileTypes: [
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,54 +10,54 @@ patterns:
1010

1111
repository:
1212
$apply:
13-
- file: 'regexp-common.inc.yaml'
13+
- file: 'regexp-common.inc.syntax.yaml'
1414

15-
- file: 'comment.inc.yaml'
15+
- file: 'comment.inc.syntax.yaml'
1616
vars:
1717
suffix: ''
1818
marker: ''
1919

20-
- file: 'comment.inc.yaml'
20+
- file: 'comment.inc.syntax.yaml'
2121
vars:
2222
suffix: '-string-single-three'
2323
marker: "|(?=''')"
2424

25-
- file: 'comment.inc.yaml'
25+
- file: 'comment.inc.syntax.yaml'
2626
vars:
2727
suffix: '-string-double-three'
2828
marker: '|(?=""")'
2929

30-
- file: 'regexp.inc.yaml'
30+
- file: 'regexp.inc.syntax.yaml'
3131
vars:
3232
prefix: 'single-one-'
3333
marker: "|(?=\\')"
3434
nested: ''
3535

36-
- file: 'regexp.inc.yaml'
36+
- file: 'regexp.inc.syntax.yaml'
3737
vars:
3838
prefix: 'single-three-'
3939
marker: "|(?=\\'\\'\\')"
4040
nested: "- include: '#comments-string-single-three'"
4141

42-
- file: 'regexp.inc.yaml'
42+
- file: 'regexp.inc.syntax.yaml'
4343
vars:
4444
prefix: 'double-one-'
4545
marker: '|(?=")'
4646
nested: ''
4747

48-
- file: 'regexp.inc.yaml'
48+
- file: 'regexp.inc.syntax.yaml'
4949
vars:
5050
prefix: 'double-three-'
5151
marker: '|(?=""")'
5252
nested: "- include: '#comments-string-double-three'"
5353

54-
- file: 'pystring.inc.yaml'
54+
- file: 'pystring.inc.syntax.yaml'
5555
vars:
5656
line: single
5757
marker: "\\'|\""
5858
guard: "|((?<!\\\\)\\n)"
5959

60-
- file: 'pystring.inc.yaml'
60+
- file: 'pystring.inc.syntax.yaml'
6161
vars:
6262
line: multi
6363
marker: "\\'\\'\\'|\"\"\""

grammars/MagicPython.tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- AUTOGENERATED FROM grammars/MagicPython.yaml -->
1+
<!-- AUTOGENERATED FROM grammars/MagicPython.syntax.yaml -->
22
<?xml version="1.0" encoding="UTF-8"?>
33
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
44
<plist version="1.0">

grammars/MagicRegExp.cson

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# AUTOGENERATED FROM grammars/MagicRegExp.yaml
1+
# AUTOGENERATED FROM grammars/MagicRegExp.syntax.yaml
22
name: "MagicRegExp"
33
scopeName: "source.regexp.python"
44
fileTypes: [
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ patterns:
99

1010
repository:
1111
$apply:
12-
- file: 'regexp-common.inc.yaml'
13-
- file: 'regexp.inc.yaml'
12+
- file: 'regexp-common.inc.syntax.yaml'
13+
- file: 'regexp.inc.syntax.yaml'
1414
vars:
1515
prefix: ''
1616
marker: ''

grammars/MagicRegExp.tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- AUTOGENERATED FROM grammars/MagicRegExp.yaml -->
1+
<!-- AUTOGENERATED FROM grammars/MagicRegExp.syntax.yaml -->
22
<?xml version="1.0" encoding="UTF-8"?>
33
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
44
<plist version="1.0">

0 commit comments

Comments
 (0)