grammars/source.sentinel.json in github-linguist-7.30.0 vs grammars/source.sentinel.json in github-linguist-8.0.0

- old
+ new

@@ -1 +1 @@ -{"name":"HashiCorp Sentinel","scopeName":"source.sentinel","patterns":[{"name":"comment.line.double-slash.sentinel","match":"\\/\\/.*$"},{"name":"comment.line.number-sign.sentinel","match":"#.*$"},{"name":"comment.line.block.sentinel","begin":"/\\*","end":"\\*/"},{"name":"constant.numeric.hex.sentinel","match":"\\b0[xX][a-fA-F0-9]+\\b"},{"name":"constant.numeric.oct.sentinel","match":"\\b0[0-7]+\\b"},{"name":"constant.numeric.number.sentinel","match":"\\b(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))([eE][-+]?[0-9]+)?\\b"},{"name":"constant.language.sentinel","match":"\\b(true|false|null|undefined)\\b"},{"match":"\\b(when)\\b\\s+.*:","captures":{"1":{"name":"keyword.control.when.sentinel"}}},{"match":"\\b(else)\\b:","captures":{"1":{"name":"keyword.control.else.sentinel"}}},{"name":"keyword.control.declaration.sentinel","match":"\\b(import|param)\\b"},{"name":"keyword.control.sentinel","match":"\\b(if|case|for|any|all|filter|map|break|continue|return)\\b"},{"name":"keyword.operator.symbol.sentinel","match":"[-+*/%=\u003c\u003e!]"},{"name":"keyword.control.sentinel","match":"\\b(and|or|contains|in|is|matches|not|xor|else)\\b"},{"name":"keyword.other.sentinel","match":"\\b(func|rule)\\b"},{"name":"keyword.other.sentinel","match":"\\b(as|default|when)\\b"},{"name":"string.quoted.double.untitled","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.single.sentinel","match":"\\\\[abfnrtv\\\\\"]"},{"name":"constant.character.escape.hex.sentinel","match":"\\\\x[a-fA-F0-9]+"},{"name":"constant.character.escape.oct.sentinel","match":"\\\\[0-7]{3}"},{"name":"constant.character.escape.unicode32.sentinel","match":"\\\\u[a-fA-F0-9]{4}"},{"name":"constant.character.escape.unicode64.sentinel","match":"\\\\U[a-fA-F0-9]{8}"}]},{"name":"support.function.builtin.sentinel","match":"\\b(append|delete|error|keys|length|print|range|values|int|float|string|bool)\\b"}]} +{"name":"HashiCorp Sentinel","scopeName":"source.sentinel","patterns":[{"include":"#comments"},{"include":"#numeric_literals"},{"include":"#language_constants"},{"match":"\\b(when)\\b\\s+.*:","captures":{"1":{"name":"keyword.control.when.sentinel"}}},{"match":"\\b(else)\\b:","captures":{"1":{"name":"keyword.control.else.sentinel"}}},{"name":"keyword.control.declaration.sentinel","match":"\\b(import|param)\\b"},{"name":"keyword.control.sentinel","match":"\\b(if|case|for|any|all|filter|map|break|continue|return)\\b"},{"include":"#operators"},{"name":"keyword.other.sentinel","match":"\\b(func|rule)\\b"},{"name":"keyword.other.sentinel","match":"\\b(as|default|when)\\b"},{"include":"#string_literals"},{"include":"#functions"}],"repository":{"block_inline_comments":{"name":"comment.block.sentinel","begin":"/\\*","end":"\\*/","captures":{"0":{"name":"punctuation.definition.comment.sentinel"}}},"comments":{"patterns":[{"include":"#hash_line_comments"},{"include":"#double_slash_line_comments"},{"include":"#block_inline_comments"}]},"double_slash_line_comments":{"name":"comment.line.double-slash.sentinel","begin":"//","end":"$\\n?","captures":{"0":{"name":"punctuation.definition.comment.sentinel"}}},"functions":{"match":"\\b(append|compare|delete|error|keys|length|print|range|values|int|float|string|bool)(\\b\\s*\\()","captures":{"1":{"name":"support.function.builtin.sentinel"},"2":{}}},"hash_line_comments":{"name":"comment.line.number-sign.sentinel","begin":"#","end":"$\\n?","captures":{"0":{"name":"punctuation.definition.comment.sentinel"}}},"language_constants":{"name":"constant.language.sentinel","match":"\\b(true|false|null|undefined)\\b"},"numeric_literals":{"patterns":[{"name":"constant.numeric.hex.sentinel","match":"\\b0[xX][a-fA-F0-9]+\\b"},{"name":"constant.numeric.oct.sentinel","match":"\\b0[0-7]+\\b"},{"name":"constant.numeric.number.sentinel","match":"\\b(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))([eE][-+]?[0-9]+)?\\b"}]},"operators":{"patterns":[{"name":"keyword.operator.symbol.sentinel","match":"(\\+=|-=|\\*=|\\/=|%=|==|!=|\u003c=|\u003e=)"},{"name":"keyword.operator.symbol.sentinel","match":"(\\+|-|\\*|\\/|%|\u003c|\u003e|=|!)"},{"name":"keyword.control.sentinel","match":"\\b(is\u0008not\u0008empty|is\u0008empty|not\u0008contains|not\u0008matches|is\u0008not)\\b"},{"name":"keyword.control.sentinel","match":"\\b(and|contains|else|in|is|matches|not|or|xor)\\b"}]},"string_literals":{"name":"string.quoted.double.untitled","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.single.sentinel","match":"\\\\[abfnrtv\\\\\"]"},{"name":"constant.character.escape.hex.sentinel","match":"\\\\x[a-fA-F0-9]+"},{"name":"constant.character.escape.oct.sentinel","match":"\\\\[0-7]{3}"},{"name":"constant.character.escape.unicode32.sentinel","match":"\\\\u[a-fA-F0-9]{4}"},{"name":"constant.character.escape.unicode64.sentinel","match":"\\\\U[a-fA-F0-9]{8}"}]}}}