Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for TM_COMMENT_CASE_INSENSITIVE #394

Merged
merged 1 commit into from
Jan 28, 2024
Merged
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
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
{
"scope": "meta.shellVariable.name.tmPreferences - (meta.tag - punctuation.definition.tag.begin.xml)",
"completions": [
{
"trigger": "TM_COMMENT_CASE_INSENSITIVE",
"kind": ["variable", "v", "shellVariable"],
},
{
"trigger": "TM_COMMENT_CASE_INSENSITIVE_2",
"kind": ["variable", "v", "shellVariable"],
},
{
"trigger": "TM_COMMENT_DISABLE_INDENT",
"kind": ["variable", "v", "shellVariable"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ contexts:
- include: string-end
- include: value-content
- include: comments
- match: \bTM_COMMENT_(?:START|END|DISABLE_INDENT)(?:_[2-9])?\b
- match: \bTM_COMMENT_(?:START|END|DISABLE_INDENT|CASE_INSENSITIVE)(?:_[2-9])?\b
scope: entity.name.constant.shellVariable.tmPreferences support.constant.shellVariable.tmPreferences
push: after-number
- match: \b\w+\b
Expand Down
8 changes: 8 additions & 0 deletions Package/TextMate Preferences/syntax_test_tmPreferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,14 @@
<string>yes</string>
</dict>
<dict>
<!-- ^ meta.inside-plist.tmPreferences meta.inside-dict.main.tmPreferences meta.inside-dict.settings.tmPreferences meta.inside-array.shellVariables.tmPreferences meta.inside-dict.shellVariables -->
<key>name</key>
<string>TM_COMMENT_CASE_INSENSITIVE_2</string>
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.inside-value.string.plist support.constant.shellVariable.tmPreferences -->
<key>value</key>
<string>yes</string>
</dict>
<dict>
<!-- ^ meta.inside-plist.tmPreferences meta.inside-dict.main.tmPreferences meta.inside-dict.settings.tmPreferences meta.inside-array.shellVariables.tmPreferences meta.inside-dict.shellVariables -->
<key>name</key>
<string>test</string>
Expand Down