Skip to content

Commit 466ac04

Browse files
brianush1WebFreak001
authored andcommitted
remove 'body' keyword from D syntax files
1 parent 2e4fcba commit 466ac04

File tree

2 files changed

+2
-24
lines changed

2 files changed

+2
-24
lines changed

syntaxes/d.json

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@
676676
"labeled-statement": {
677677
"patterns": [
678678
{
679-
"match": "\\b(?!abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|in|inout|int|interface|invariant|ireal|is|lazy|long|macro|mixin|module|new|nothrow|noreturn|null|out|override|package|pragma|private|protected|public|pure|real|ref|return|scope|shared|short|static|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|__FILE__|__MODULE__|__LINE__|__FUNCTION__|__PRETTY_FUNCTION__|__gshared|__traits|__vector|__parameters)[a-zA-Z_][a-zA-Z_0-9]*\\s*:",
679+
"match": "\\b(?!abstract|alias|align|asm|assert|auto|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|in|inout|int|interface|invariant|ireal|is|lazy|long|macro|mixin|module|new|nothrow|noreturn|null|out|override|package|pragma|private|protected|public|pure|real|ref|return|scope|shared|short|static|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|__FILE__|__MODULE__|__LINE__|__FUNCTION__|__PRETTY_FUNCTION__|__gshared|__traits|__vector|__parameters)[a-zA-Z_][a-zA-Z_0-9]*\\s*:",
680680
"name": "entity.name.d"
681681
}
682682
]
@@ -1450,9 +1450,6 @@
14501450
{
14511451
"include": "#out-statement"
14521452
},
1453-
{
1454-
"include": "#body-statement"
1455-
},
14561453
{
14571454
"include": "#block-statement"
14581455
}
@@ -1493,14 +1490,6 @@
14931490
}
14941491
]
14951492
},
1496-
"body-statement": {
1497-
"patterns": [
1498-
{
1499-
"match": "\\bbody\\b",
1500-
"name": "keyword.control.body.d"
1501-
}
1502-
]
1503-
},
15041493
"constructor": {
15051494
"patterns": [
15061495
{
@@ -2757,10 +2746,6 @@
27572746
"match": "\\bauto\\b",
27582747
"name": "keyword.token.auto.d"
27592748
},
2760-
{
2761-
"match": "\\bbody\\b",
2762-
"name": "keyword.token.body.d"
2763-
},
27642749
{
27652750
"match": "\\bbool\\b",
27662751
"name": "keyword.token.bool.d"

syntaxes/d.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ repository:
302302
- include: '#declaration-statement'
303303
labeled-statement:
304304
patterns:
305-
- match: '\b(?!abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|in|inout|int|interface|invariant|ireal|is|lazy|long|macro|mixin|module|new|nothrow|noreturn|null|out|override|package|pragma|private|protected|public|pure|real|ref|return|scope|shared|short|static|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|__FILE__|__MODULE__|__LINE__|__FUNCTION__|__PRETTY_FUNCTION__|__gshared|__traits|__vector|__parameters)[a-zA-Z_][a-zA-Z_0-9]*\s*:'
305+
- match: '\b(?!abstract|alias|align|asm|assert|auto|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|in|inout|int|interface|invariant|ireal|is|lazy|long|macro|mixin|module|new|nothrow|noreturn|null|out|override|package|pragma|private|protected|public|pure|real|ref|return|scope|shared|short|static|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|__FILE__|__MODULE__|__LINE__|__FUNCTION__|__PRETTY_FUNCTION__|__gshared|__traits|__vector|__parameters)[a-zA-Z_][a-zA-Z_0-9]*\s*:'
306306
name: entity.name.d
307307
declaration-statement:
308308
patterns:
@@ -673,7 +673,6 @@ repository:
673673
patterns:
674674
- include: '#in-statement'
675675
- include: '#out-statement'
676-
- include: '#body-statement'
677676
- include: '#block-statement'
678677
in-statement:
679678
patterns:
@@ -693,10 +692,6 @@ repository:
693692
- include: '#identifier'
694693
- match: \bout\b
695694
name: keyword.control.out.d
696-
body-statement:
697-
patterns:
698-
- match: \bbody\b
699-
name: keyword.control.body.d
700695
constructor:
701696
patterns:
702697
- match: \bthis\b
@@ -1303,8 +1298,6 @@ repository:
13031298
name: 'keyword.token.assert.d'
13041299
- match: '\bauto\b'
13051300
name: 'keyword.token.auto.d'
1306-
- match: '\bbody\b'
1307-
name: 'keyword.token.body.d'
13081301
- match: '\bbool\b'
13091302
name: 'keyword.token.bool.d'
13101303
- match: '\bbreak\b'

0 commit comments

Comments
 (0)