diff --git a/Package/Sublime Text Syntax Definition/Sublime Text Syntax Definition.sublime-syntax b/Package/Sublime Text Syntax Definition/Sublime Text Syntax Definition.sublime-syntax index 9a1db99a..e8b99c7b 100644 --- a/Package/Sublime Text Syntax Definition/Sublime Text Syntax Definition.sublime-syntax +++ b/Package/Sublime Text Syntax Definition/Sublime Text Syntax Definition.sublime-syntax @@ -134,7 +134,7 @@ contexts: 1: string.unquoted.plain.out.yaml storage.type.extends.sublime-syntax 2: punctuation.separator.key-value.yaml - - match: ((?:file|hidden)_extensions)\s*(:)(?=\s|$) + - match: ((?:hidden_)?file_extensions)\s*(:)(?=\s|$) captures: 1: string.unquoted.plain.out.yaml entity.name.tag.yaml 2: punctuation.separator.key-value.yaml diff --git a/Package/Sublime Text Syntax Definition/syntax_test_sublime-syntax.yaml b/Package/Sublime Text Syntax Definition/syntax_test_sublime-syntax.yaml index bbb4c54a..b99f03de 100644 --- a/Package/Sublime Text Syntax Definition/syntax_test_sublime-syntax.yaml +++ b/Package/Sublime Text Syntax Definition/syntax_test_sublime-syntax.yaml @@ -18,10 +18,10 @@ file_extensions: [a, b] #^^^^^^^^^^^^^^ string.unquoted.plain.out.yaml entity.name.tag.yaml # ^^^^^^ meta.flow-sequence.yaml # ^ string -hidden_extension: [a, b] -#^^^^^^^^^^^^^^^ string.unquoted.plain.out.yaml entity.name.tag.yaml -# ^^^^^^ meta.flow-sequence.yaml -# ^ string +hidden_file_extensions: [a, b] +#^^^^^^^^^^^^^^^^^^^^^ string.unquoted.plain.out.yaml entity.name.tag.yaml +# ^^^^^^ meta.flow-sequence.yaml +# ^ string first_line_match: azx #^^^^^^^^^^^^^^^ keyword.other.first_line_match.sublime-syntax # ^^^ meta.expect-regexp source.regexp diff --git a/plugins/syntax_dev/completions.py b/plugins/syntax_dev/completions.py index b62d69bf..8d29f255 100644 --- a/plugins/syntax_dev/completions.py +++ b/plugins/syntax_dev/completions.py @@ -101,7 +101,7 @@ class SyntaxDefCompletionsListener(sublime_plugin.ViewEventListener): ('contexts', KIND_HEADER_DICT, 'The syntax contexts.'), # list keys ('file_extensions', KIND_HEADER_LIST, "The list of file extensions."), - ('hidden_extensions', KIND_HEADER_LIST, "The list of hidden file extensions.") + ('hidden_file_extensions', KIND_HEADER_LIST, "The list of hidden file extensions.") )) base_completions_contexts = format_static_completions(templates=(