Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion autogenerated/cpp.embedded.macro.tmLanguage.json

Large diffs are not rendered by default.

114 changes: 57 additions & 57 deletions autogenerated/cpp.tmLanguage.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions language_examples/#700.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
void test_bits_specifier() {
printf("%b\n", 0b1010);
printf("%B\n", 0b0101);
}
102 changes: 102 additions & 0 deletions language_examples/#700.spec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
- source: void
scopesBegin:
- meta.function.definition
scopes:
- meta.qualified-type
- storage.type.primitive
- storage.type.built-in.primitive
- source: test_bits_specifier
scopesBegin:
- meta.head.function.definition
scopes:
- entity.name.function.definition
- source: (
scopes:
- punctuation.section.parameters.begin.bracket.round
- source: )
scopes:
- punctuation.section.parameters.end.bracket.round
- source: '{'
scopes:
- punctuation.section.block.begin.bracket.curly.function.definition
scopesEnd:
- meta.head.function.definition
- source: printf
scopesBegin:
- meta.body.function.definition
scopes:
- entity.name.function.call
- source: (
scopes:
- punctuation.section.arguments.begin.bracket.round.function.call
- source: '"'
scopesBegin:
- string.quoted.double
scopes:
- punctuation.definition.string.begin
- source: '%b'
scopes:
- constant.other.placeholder
- source: \n
scopes:
- constant.character.escape
- source: '"'
scopes:
- punctuation.definition.string.end
scopesEnd:
- string.quoted.double
- source: ','
scopes:
- punctuation.separator.delimiter.comma
- source: 0b
scopes:
- keyword.other.unit.binary
- source: '1010'
scopes:
- constant.numeric.binary
- source: )
scopes:
- punctuation.section.arguments.end.bracket.round.function.call
- source: ;
scopes:
- punctuation.terminator.statement
- source: printf
scopes:
- entity.name.function.call
- source: (
scopes:
- punctuation.section.arguments.begin.bracket.round.function.call
- source: '"'
scopesBegin:
- string.quoted.double
scopes:
- punctuation.definition.string.begin
- source: '%B'
scopes:
- constant.other.placeholder
- source: \n
scopes:
- constant.character.escape
- source: '"'
scopes:
- punctuation.definition.string.end
scopesEnd:
- string.quoted.double
- source: ','
scopes:
- punctuation.separator.delimiter.comma
- source: 0b
scopes:
- keyword.other.unit.binary
- source: '0101'
scopes:
- constant.numeric.binary
- source: )
scopes:
- punctuation.section.arguments.end.bracket.round.function.call
- source: ;
scopes:
- punctuation.terminator.statement
- source: '}'
scopes:
- punctuation.section.block.end.bracket.curly.function.definition
4 changes: 2 additions & 2 deletions main/main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2800,8 +2800,8 @@ def generateBlockFinder( name:"", tag_as:"", start_pattern:nil, needs_semicolon:
# ((-?\d+)|\*(-?\d+\$)?)? # minimum field width
# (\.((-?\d+)|\*(-?\d+\$)?)?)? # precision
# (hh|h|ll|l|j|t|z|q|L|vh|vl|v|hv|hl)? # length modifier
# [diouxXDOUeEfFgGaACcSspn%] # conversion type
match: "(?x) (?!%')(?!%\")%\n(\\d+\\$)?\t\t\t\t\t\t # field (argument #)\n[#0\\- +']*\t\t\t\t\t\t # flags\n[,;:_]?\t\t\t\t\t\t\t # separator character (AltiVec)\n((-?\\d+)|\\*(-?\\d+\\$)?)?\t\t # minimum field width\n(\\.((-?\\d+)|\\*(-?\\d+\\$)?)?)?\t# precision\n(hh|h|ll|l|j|t|z|q|L|vh|vl|v|hv|hl)? # length modifier\n[diouxXDOUeEfFgGaACcSspn%]\t\t # conversion type",
# [diouxXbBDOUeEfFgGaACcSspn%] # conversion type
match: "(?x) (?!%')(?!%\")%\n(\\d+\\$)?\t\t\t\t\t\t # field (argument #)\n[#0\\- +']*\t\t\t\t\t\t # flags\n[,;:_]?\t\t\t\t\t\t\t # separator character (AltiVec)\n((-?\\d+)|\\*(-?\\d+\\$)?)?\t\t # minimum field width\n(\\.((-?\\d+)|\\*(-?\\d+\\$)?)?)?\t# precision\n(hh|h|ll|l|j|t|z|q|L|vh|vl|v|hv|hl)? # length modifier\n[diouxXbBDOUeEfFgGaACcSspn%]\t\t # conversion type",
name: "constant.other.placeholder"
},
# I don't think these are actual escapes, and they incorrectly mark valid strings
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.