Skip to content

Commit

Permalink
[Common] Change main scope to source.diff3
Browse files Browse the repository at this point in the history
... to align it with main scope Diff.sublime-syntax uses.
  • Loading branch information
deathaxe committed Oct 25, 2024
1 parent 4f89e3f commit 76d14e6
Show file tree
Hide file tree
Showing 41 changed files with 59 additions and 59 deletions.
2 changes: 1 addition & 1 deletion ASP/ASP.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ contexts:
- include: root_asp
- match: \n
pop: true
- include: scope:text.diff3#conflicts # merge conflict marker
- include: scope:source.diff3#conflicts # merge conflict marker

line_continuation_char:
- match: '\b_'
Expand Down
4 changes: 2 additions & 2 deletions AppleScript/AppleScript.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ contexts:
0: punctuation.definition.comment.applescript
pop: true
- include: comments.nested
- include: scope:text.diff3#conflicts # merge conflict marker
- include: scope:source.diff3#conflicts # merge conflict marker

comments.nested:
- match: \(\*
Expand All @@ -556,7 +556,7 @@ contexts:
0: punctuation.definition.comment.applescript
pop: true
- include: comments.nested
- include: scope:text.diff3#conflicts # merge conflict marker
- include: scope:source.diff3#conflicts # merge conflict marker

data-structures:
- match: '(\{)'
Expand Down
2 changes: 1 addition & 1 deletion Batch File/Batch File.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ contexts:
- match: '{{label_comment}}'
scope: punctuation.definition.comment.dosbatch
push: comment-body
- include: scope:text.diff3#conflicts # merge conflict marker
- include: scope:source.diff3#conflicts # merge conflict marker

comment-body:
- meta_scope: comment.line.colon.dosbatch
Expand Down
2 changes: 1 addition & 1 deletion C#/C#.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ contexts:
captures:
1: punctuation.definition.comment.cs
- include: comments_in
- include: scope:text.diff3#conflicts # merge conflict marker
- include: scope:source.diff3#conflicts # merge conflict marker

comments_in:
- match: \b(?i:todo|hack|xxx)\b
Expand Down
2 changes: 1 addition & 1 deletion C++/C.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ contexts:
comments:
- include: block-comments
- include: line-comments
- include: scope:text.diff3#conflicts # merge conflict marker
- include: scope:source.diff3#conflicts # merge conflict marker

block-comments:
- match: ^(/\*) =\s*(.*?)\s*= (\*/)$\n?
Expand Down
4 changes: 2 additions & 2 deletions CSS/CSS.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ contexts:
- match: /\*+
scope: punctuation.definition.comment.begin.css
push: block-comment-body
- include: scope:text.diff3#conflicts # merge conflict marker
- include: scope:source.diff3#conflicts # merge conflict marker

block-comment-body:
- meta_scope: comment.block.css
Expand All @@ -397,7 +397,7 @@ contexts:
- match: ^\s*(\*)(?!/)
captures:
1: punctuation.definition.comment.css
- include: scope:text.diff3#conflicts # merge conflict marker
- include: scope:source.diff3#conflicts # merge conflict marker

###[ AT RULES ]################################################################

Expand Down
2 changes: 1 addition & 1 deletion Clojure/Clojure.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ contexts:
- match: \^
scope: keyword.operator.macro.clojure
push: pop-expr
- include: scope:text.diff3#conflicts # merge conflict marker
- include: scope:source.diff3#conflicts # merge conflict marker

pop-dispatch-expr:
- match: (?=\s)
Expand Down
2 changes: 1 addition & 1 deletion D/D.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ contexts:
captures:
1: punctuation.definition.comment.d
- include: nested-comment
- include: scope:text.diff3#conflicts # merge conflict marker
- include: scope:source.diff3#conflicts # merge conflict marker
nested-comment:
- match: /\+(\+(?!/))?
scope: punctuation.definition.comment.d
Expand Down
2 changes: 1 addition & 1 deletion Diff/Diff3.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#
# see: https://www.gnu.org/software/diffutils/manual/diffutils.html
name: Diff3
scope: text.diff3
scope: source.diff3
version: 2

contexts:
Expand Down
2 changes: 1 addition & 1 deletion Erlang/Erlang.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ contexts:
- match: \%+
scope: punctuation.definition.comment.erlang
push: comment-body
- include: scope:text.diff3#conflicts # merge conflict marker
- include: scope:source.diff3#conflicts # merge conflict marker

comment-body:
- meta_include_prototype: false
Expand Down
2 changes: 1 addition & 1 deletion Go/Go.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ contexts:
- include: match-comment-magic
- include: match-comment-line
- include: match-comment-general
- include: scope:text.diff3#conflicts # merge conflict marker
- include: scope:source.diff3#conflicts # merge conflict marker

match-comment-magic:
- include: match-comment-magic-general
Expand Down
2 changes: 1 addition & 1 deletion Graphviz/DOT.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ contexts:
- include: expressions

expressions:
- include: scope:text.diff3#conflicts # merge conflict marker
- include: scope:source.diff3#conflicts # merge conflict marker
- match: \b((sub|di)?graph)\b\s+((cluster_)?\w+)\b
captures:
1: storage.type.dot
Expand Down
2 changes: 1 addition & 1 deletion Groovy/Groovy.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ contexts:
- match: //
scope: punctuation.definition.comment.groovy
push: inside-line-comment
- include: scope:text.diff3#conflicts # merge conflict marker
- include: scope:source.diff3#conflicts # merge conflict marker
inside-line-comment:
- meta_scope: comment.line.double-slash.groovy
- match: $\n?
Expand Down
2 changes: 1 addition & 1 deletion Haskell/Cabal.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ contexts:
scope: comment.line.double-dash.cabal
captures:
1: punctuation.definition.comment.cabal
- include: scope:text.diff3#conflicts # merge conflict marker
- include: scope:source.diff3#conflicts # merge conflict marker

###[ SECTIONS ]################################################################

Expand Down
2 changes: 1 addition & 1 deletion Haskell/Haskell.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ contexts:
# https://www.haskell.org/onlinereport/haskell2010/haskellch2.html#x7-170002.3
- include: line-comments
- include: block-comments
- include: scope:text.diff3#conflicts # merge conflict marker
- include: scope:source.diff3#conflicts # merge conflict marker

block-comments:
- match: \{-(?!#)
Expand Down
2 changes: 1 addition & 1 deletion JSON/JSON.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ contexts:
comments:
- include: block-comments
- include: line-comments
- include: scope:text.diff3#conflicts # merge conflict marker
- include: scope:source.diff3#conflicts # merge conflict marker

block-comments:
# empty block comments
Expand Down
2 changes: 1 addition & 1 deletion Java/Java.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ contexts:
comments:
- include: line-comments
- include: block-comments
- include: scope:text.diff3#conflicts # merge conflict marker
- include: scope:source.diff3#conflicts # merge conflict marker

block-comments:
# empty block comments
Expand Down
2 changes: 1 addition & 1 deletion JavaScript/JavaScript.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ contexts:
comments:
- include: line-comments
- include: block-comments
- include: scope:text.diff3#conflicts # merge conflict marker
- include: scope:source.diff3#conflicts # merge conflict marker

block-comments:
# empty block comments
Expand Down
2 changes: 1 addition & 1 deletion LaTeX/Bibtex.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ contexts:
- include: bibtex

bibtex:
- include: scope:text.diff3#conflicts # merge conflict marker
- include: scope:source.diff3#conflicts # merge conflict marker
- include: line-comments
- include: comments
- include: declarations
Expand Down
2 changes: 1 addition & 1 deletion LaTeX/TeX.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ contexts:
comments:
- match: '%.*$\n?'
scope: comment.line.percentage.tex
- include: scope:text.diff3#conflicts # merge conflict marker
- include: scope:source.diff3#conflicts # merge conflict marker

###[ BLOCKS ]###################################################################

Expand Down
2 changes: 1 addition & 1 deletion Lisp/Lisp.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ contexts:
comments:
- include: line-comments
- include: block-comments
- include: scope:text.diff3#conflicts # merge conflict marker
- include: scope:source.diff3#conflicts # merge conflict marker
- match: \|#
scope: invalid.illegal.stray-comment-end.lisp

Expand Down
2 changes: 1 addition & 1 deletion Lua/Lua.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ contexts:
comments:
- include: block-comments
- include: line-comments
- include: scope:text.diff3#conflicts # merge conflict marker
- include: scope:source.diff3#conflicts # merge conflict marker

block-comments:
- match: --\[\[--
Expand Down
2 changes: 1 addition & 1 deletion Makefile/Makefile.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ contexts:
- match: \#
scope: punctuation.definition.comment.makefile
push: comment-body
- include: scope:text.diff3#conflicts # merge conflict marker
- include: scope:source.diff3#conflicts # merge conflict marker

comment:
- match: \#
Expand Down
6 changes: 3 additions & 3 deletions Markdown/Markdown.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ contexts:
1: punctuation.section.frontmatter.end.markdown

markdown:
- include: scope:text.diff3#conflicts
- include: scope:source.diff3#conflicts
- include: indented-code-blocks
- include: thematic-breaks
- include: block-quotes
Expand Down Expand Up @@ -757,7 +757,7 @@ contexts:
pop: 1

list-block-content:
- include: scope:text.diff3#conflicts
- include: scope:source.diff3#conflicts
- include: fenced-code-blocks
- include: html-blocks
- include: reference-definitions
Expand Down Expand Up @@ -2473,7 +2473,7 @@ contexts:
- include: link-ref

markups:
- include: scope:text.diff3#conflicts
- include: scope:source.diff3#conflicts
# Markdown will convert this for us. We match it so that the
# HTML grammar will not mark it up as invalid.
- match: '[<>](-+|=+)[<>]?'
Expand Down
2 changes: 1 addition & 1 deletion Matlab/Matlab.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ contexts:
comments:
- include: block-comments
- include: line-comments
- include: scope:text.diff3#conflicts # merge conflict marker
- include: scope:source.diff3#conflicts # merge conflict marker

block-comments:
- match: ^\s*(%\{)\s*\n
Expand Down
2 changes: 1 addition & 1 deletion OCaml/OCaml.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ contexts:
pop: true
- match: '\\(x[a-fA-F0-9][a-fA-F0-9]|[0-2]\d\d|[bnrt''"\\])'
scope: comment.block.string.constant.character.escape.ocaml
- include: scope:text.diff3#conflicts # merge conflict marker constants:
- include: scope:source.diff3#conflicts # merge conflict marker constants:
constants:
- match: '(?:\[\s*(\])|\((\))|\(\s*(\)))'
scope: constant.language.pseudo-variable.ocaml
Expand Down
2 changes: 1 addition & 1 deletion OCaml/OCamllex.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ contexts:
pop: true
- match: '\\(x[a-fA-F0-9][a-fA-F0-9]|[0-2]\d\d|[bnrt''"\\])'
scope: comment.block.string.constant.character.escape.ocaml
- include: scope:text.diff3#conflicts # merge conflict marker match-patterns:
- include: scope:source.diff3#conflicts # merge conflict marker match-patterns:
declaration-matches:
- match: (\()
captures:
Expand Down
2 changes: 1 addition & 1 deletion OCaml/OCamlyacc.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ contexts:
pop: true
- match: '\\(x[a-fA-F0-9][a-fA-F0-9]|[0-2]\d\d|[bnrt''"\\])'
scope: comment.block.string.constant.character.escape.ocamlyacc
- include: scope:text.diff3#conflicts # merge conflict marker declaration-matches:
- include: scope:source.diff3#conflicts # merge conflict marker declaration-matches:
declaration-matches:
- match: (%)(token)
captures:
Expand Down
12 changes: 6 additions & 6 deletions PHP/PHP Source.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ contexts:
- match: '#'
scope: punctuation.definition.comment.php
push: comment-line-number-sign-body
- include: scope:text.diff3#conflicts # merge conflict marker
- include: scope:source.diff3#conflicts # merge conflict marker

comment-block-body:
- meta_include_prototype: false
Expand Down Expand Up @@ -2508,7 +2508,7 @@ contexts:
- meta_content_scope: meta.string.heredoc.php string.unquoted.heredoc.php
- match: '{{heredoc_unquoted_end}}'
pop: 1
- include: scope:text.diff3#conflicts # merge conflict marker
- include: scope:source.diff3#conflicts # merge conflict marker
- include: string-escapes
- include: string-placeholders
- include: string-interpolations
Expand All @@ -2517,7 +2517,7 @@ contexts:
- meta_content_scope: meta.string.heredoc.php string.unquoted.heredoc.php
- match: '{{heredoc_quoted_end}}'
pop: 1
- include: scope:text.diff3#conflicts # merge conflict marker
- include: scope:source.diff3#conflicts # merge conflict marker
- include: string-placeholders

###[ STRINGS ]################################################################
Expand All @@ -2538,7 +2538,7 @@ contexts:
- match: \`
scope: punctuation.definition.string.end.php
pop: 1
- include: scope:text.diff3#conflicts # merge conflict marker
- include: scope:source.diff3#conflicts # merge conflict marker
- include: string-escapes
- include: string-interpolations
- match: \\.
Expand Down Expand Up @@ -2609,7 +2609,7 @@ contexts:
- meta_include_prototype: false
- meta_scope: meta.string.php
- meta_content_scope: string.quoted.double.php
- include: scope:text.diff3#conflicts # merge conflict marker
- include: scope:source.diff3#conflicts # merge conflict marker
- include: string-double-quoted-end
- include: string-escapes
- include: string-placeholders
Expand Down Expand Up @@ -2691,7 +2691,7 @@ contexts:
- meta_include_prototype: false
- meta_scope: meta.string.php
- meta_content_scope: string.quoted.single.php
- include: scope:text.diff3#conflicts # merge conflict marker
- include: scope:source.diff3#conflicts # merge conflict marker
- include: string-single-quoted-end
- include: string-single-quoted-placeholders
- match: \\[\\'']
Expand Down
2 changes: 1 addition & 1 deletion Pascal/Pascal.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ first_line_match: |-
contexts:
prototype:
- include: scope:text.diff3#conflicts # merge conflict marker
- include: scope:source.diff3#conflicts # merge conflict marker

main:
- match: \b(?i:(absolute|abstract|all|and|and_then|array|as|asm|attribute|begin|bindable|case|class|const|constructor|destructor|div|do|do|else|end|except|export|exports|external|far|file|finalization|finally|for|forward|goto|if|implementation|import|in|inherited|initialization|interface|interrupt|is|label|library|mod|module|name|near|nil|not|object|of|only|operator|or|or_else|otherwise|packed|pow|private|program|property|protected|public|published|qualified|record|repeat|resident|restricted|segment|set|shl|shr|then|to|try|type|unit|until|uses|value|var|view|virtual|while|with|xor))\b
Expand Down
2 changes: 1 addition & 1 deletion Perl/Perl.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ contexts:
- include: expressions-common

expressions-common:
- include: scope:text.diff3#conflicts # merge conflict marker
- include: scope:source.diff3#conflicts # merge conflict marker
- include: sub
- include: quoted-like
- include: label
Expand Down
4 changes: 2 additions & 2 deletions Python/Python.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ contexts:
push:
- comment-body
- type-hint
- include: scope:text.diff3#conflicts # merge conflict marker
- include: scope:source.diff3#conflicts # merge conflict marker

comment-body:
- meta_scope: comment.line.number-sign.python
Expand Down Expand Up @@ -4167,7 +4167,7 @@ contexts:
# for use by inheriting syntaxes to easily inject string interpolation
# in any kind of quoted or unquoted string
string-prototype:
- include: scope:text.diff3#conflicts
- include: scope:source.diff3#conflicts

###[ PROTOTYPES ]#############################################################

Expand Down
2 changes: 1 addition & 1 deletion R/R.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ contexts:
- meta_scope: comment.line.number-sign.r
- match: \n
pop: true
- include: scope:text.diff3#conflicts # merge conflict marker
- include: scope:source.diff3#conflicts # merge conflict marker

constants:
- match: \b(pi|letters|LETTERS|month\.abb|month\.name)\b
Expand Down
2 changes: 1 addition & 1 deletion Rails/HAML.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ contexts:
2: meta.brackets.haml
3: punctuation.section.brackets.begin.haml
4: punctuation.section.brackets.end.haml
- include: scope:text.diff3#conflicts # merge conflict marker
- include: scope:source.diff3#conflicts # merge conflict marker

comment-body:
- meta_include_prototype: false
Expand Down
Loading

0 comments on commit 76d14e6

Please sign in to comment.