Skip to content

Commit

Permalink
fix #113, parens block
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-hykin committed Apr 22, 2019
1 parent 2a9b8d4 commit e66a2ca
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions c/generate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@
]
},
"parens" => {
name: "punctuation.section.parens",
name: "meta.parens",
begin: "\\(",
beginCaptures: {
"0" => {
Expand All @@ -737,7 +737,7 @@
]
},
"parens-block" => {
name: "punctuation.section.parens.block",
name: "meta.parens.block",
begin: "\\(",
beginCaptures: {
"0" => {
Expand Down
4 changes: 2 additions & 2 deletions c/tags.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ meta.function.c
meta.function.definition.parameters.c
meta.head.switch.cpp.c
meta.initialization.c
meta.parens.block.c
meta.parens.c
meta.preprocessor.c
meta.preprocessor.diagnostic.c
meta.preprocessor.include.c
Expand Down Expand Up @@ -89,8 +91,6 @@ punctuation.section.parameters.end.bracket.round.c
punctuation.section.parens.begin.bracket.round.c
punctuation.section.parens.begin.bracket.round.conditional.switch.cpp.c
punctuation.section.parens.begin.bracket.round.initialization.c
punctuation.section.parens.block.c
punctuation.section.parens.c
punctuation.section.parens.end.bracket.round.c
punctuation.section.parens.end.bracket.round.conditional.switch.cpp.c
punctuation.section.parens.end.bracket.round.initialization.c
Expand Down
4 changes: 2 additions & 2 deletions cpp/generate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1898,7 +1898,7 @@ def blockFinderFor( name:"", tag_as:"", start_pattern:nil, needs_semicolon: true
}
}
cpp_grammar[:parentheses] = {
name: "punctuation.section.parens-c",
name: "meta.parens",
begin: "\\(",
beginCaptures: {
"0" => {
Expand All @@ -1918,7 +1918,7 @@ def blockFinderFor( name:"", tag_as:"", start_pattern:nil, needs_semicolon: true
]
}
cpp_grammar[:parentheses_block] = {
name: "meta.block.parens",
name: "meta.parens.block",
begin: "\\(",
beginCaptures: {
"0" => {
Expand Down
4 changes: 2 additions & 2 deletions cpp/tags.txt
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ meta.block.cpp
meta.block.enum.cpp
meta.block.extern.cpp
meta.block.namespace.cpp
meta.block.parens.cpp
meta.block.struct.cpp
meta.block.switch.cpp
meta.block.union.cpp
Expand Down Expand Up @@ -134,6 +133,8 @@ meta.head.switch.cpp
meta.head.union.cpp
meta.initialization.cpp
meta.lambda.capture.cpp
meta.parens.block.cpp
meta.parens.cpp
meta.preprocessor.cpp
meta.preprocessor.diagnostic.cpp
meta.preprocessor.include.cpp
Expand Down Expand Up @@ -216,7 +217,6 @@ punctuation.section.parameters.begin.bracket.round.cpp
punctuation.section.parameters.begin.bracket.round.operator-overload.cpp
punctuation.section.parameters.end.bracket.round.cpp
punctuation.section.parameters.end.bracket.round.operator-overload.cpp
punctuation.section.parens-c.cpp
punctuation.section.parens.begin.bracket.round.conditional.switch.cpp
punctuation.section.parens.begin.bracket.round.cpp
punctuation.section.parens.begin.bracket.round.initialization.cpp
Expand Down
2 changes: 1 addition & 1 deletion syntaxes/c.tmLanguage.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions syntaxes/c.tmLanguage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@
- match: "\\b((0(x|X)[0-9a-fA-F]([0-9a-fA-F']*[0-9a-fA-F])?)|(0(b|B)[01]([01']*[01])?)|(([0-9]([0-9']*[0-9])?\\.?[0-9]*([0-9']*[0-9])?)|(\\.[0-9]([0-9']*[0-9])?))((e|E)(\\+|-)?[0-9]([0-9']*[0-9])?)?)(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?\\b"
name: constant.numeric.c
parens:
name: punctuation.section.parens.c
name: meta.parens.c
begin: "\\("
beginCaptures:
'0':
Expand All @@ -375,7 +375,7 @@
patterns:
- include: "$base"
parens-block:
name: punctuation.section.parens.block.c
name: meta.parens.block.c
begin: "\\("
beginCaptures:
'0':
Expand Down
2 changes: 1 addition & 1 deletion syntaxes/cpp.tmLanguage.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions syntaxes/cpp.tmLanguage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1504,7 +1504,7 @@
'1':
name: constant.character.escape.line-continuation.cpp
parentheses:
name: punctuation.section.parens-c.cpp
name: meta.parens.cpp
begin: "\\("
beginCaptures:
'0':
Expand All @@ -1516,7 +1516,7 @@
patterns:
- include: "$base"
parentheses_block:
name: meta.block.parens.cpp
name: meta.parens.block.cpp
begin: "\\("
beginCaptures:
'0':
Expand Down

0 comments on commit e66a2ca

Please sign in to comment.