Skip to content

Commit

Permalink
[Haskell] Rename key-value separator scope in Cabal
Browse files Browse the repository at this point in the history
  • Loading branch information
deathaxe committed Feb 4, 2022
1 parent ea4eb05 commit 4610728
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
18 changes: 9 additions & 9 deletions Haskell/Cabal.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ contexts:
- match: ^(\s*)({{boolean_tags}})(:)
captures:
2: meta.mapping.key.cabal entity.name.tag.cabal
3: meta.mapping.cabal punctuation.separator.mapping.key-value.cabal
3: meta.mapping.cabal punctuation.separator.key-value.cabal
push: boolean-values

boolean-values:
Expand All @@ -119,7 +119,7 @@ contexts:
- match: ^(\s*)({{compiler_tags}})(:)
captures:
2: meta.mapping.key.cabal entity.name.tag.cabal
3: meta.mapping.cabal punctuation.separator.mapping.key-value.cabal
3: meta.mapping.cabal punctuation.separator.key-value.cabal
push: compiler-values

compiler-values:
Expand All @@ -136,7 +136,7 @@ contexts:
- match: ^(\s*)({{dependency_tags}})(:)
captures:
2: meta.mapping.key.cabal entity.name.tag.cabal
3: meta.mapping.cabal punctuation.separator.mapping.key-value.cabal
3: meta.mapping.cabal punctuation.separator.key-value.cabal
push: dependency-values

dependency-values:
Expand All @@ -153,7 +153,7 @@ contexts:
- match: ^(\s*)({{module_tags}})(:)
captures:
2: meta.mapping.key.cabal entity.name.tag.cabal
3: meta.mapping.cabal punctuation.separator.mapping.key-value.cabal
3: meta.mapping.cabal punctuation.separator.key-value.cabal
push: module-values

module-values:
Expand All @@ -168,7 +168,7 @@ contexts:
- match: ^(\s*)({{option_tags}})(:)
captures:
2: meta.mapping.key.cabal entity.name.tag.cabal
3: meta.mapping.cabal punctuation.separator.mapping.key-value.cabal
3: meta.mapping.cabal punctuation.separator.key-value.cabal
push: option-values

option-values:
Expand All @@ -184,7 +184,7 @@ contexts:
- match: ^(\s*)({{path_tags}})(:)
captures:
2: meta.mapping.key.cabal entity.name.tag.cabal
3: meta.mapping.cabal punctuation.separator.mapping.key-value.cabal
3: meta.mapping.cabal punctuation.separator.key-value.cabal
push: path-values

path-values:
Expand All @@ -199,7 +199,7 @@ contexts:
- match: ^(\s*)({{url_tags}})(:)
captures:
2: meta.mapping.key.cabal entity.name.tag.cabal
3: meta.mapping.cabal punctuation.separator.mapping.key-value.cabal
3: meta.mapping.cabal punctuation.separator.key-value.cabal
push: url-values

url-values:
Expand All @@ -214,7 +214,7 @@ contexts:
- match: ^(\s*)({{version_tags}})(:)
captures:
2: meta.mapping.key.cabal entity.name.tag.cabal
3: meta.mapping.cabal punctuation.separator.mapping.key-value.cabal
3: meta.mapping.cabal punctuation.separator.key-value.cabal
push: version-values

version-values:
Expand All @@ -229,7 +229,7 @@ contexts:
- match: ^(\s*)({{identifier}})(:)
captures:
2: meta.mapping.key.cabal entity.name.tag.cabal
3: meta.mapping.cabal punctuation.separator.mapping.key-value.cabal
3: meta.mapping.cabal punctuation.separator.key-value.cabal
push: other-values

other-values:
Expand Down
38 changes: 19 additions & 19 deletions Haskell/tests/syntax_test_cabal.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ cabal-version: >=2.2
-- ^ meta.mapping.cabal
-- ^^^^^^^^^ meta.mapping.value.version.cabal
-- ^^^^^^^^^^ entity.name.tag.cabal
-- ^ punctuation.separator.mapping.key-value.cabal
-- ^ punctuation.separator.key-value.cabal
-- ^^ keyword.operator.comparison.cabal
-- ^^^ meta.number.version.cabal constant.numeric.value.cabal
-- ^ punctuation.separator.decimal.cabal
Expand All @@ -17,15 +17,15 @@ name: pandoc
-- ^ meta.mapping.cabal
-- ^^^^^^^^^^^^^^^^^^^ meta.mapping.value.other.cabal
-- ^ entity.name.tag.cabal
-- ^ punctuation.separator.mapping.key-value.cabal
-- ^ punctuation.separator.key-value.cabal

version: 2.11.3.1
-- <- meta.mapping.key.cabal entity.name.tag.cabal
-- ^^^^ meta.mapping.key.cabal
-- ^ meta.mapping.cabal
-- ^^^^^^^^^^^^^^^^^^ meta.mapping.value.version.cabal
-- ^^^^ entity.name.tag.cabal
-- ^ punctuation.separator.mapping.key-value.cabal
-- ^ punctuation.separator.key-value.cabal
-- ^^^^^^^^ meta.number.version.cabal constant.numeric.value.cabal
-- ^ punctuation.separator.decimal.cabal
-- ^ punctuation.separator.decimal.cabal
Expand All @@ -41,7 +41,7 @@ author: Jon Doe <[email protected]>
-- ^ meta.mapping.value.other.cabal meta.path.email.cabal - meta.string
-- ^ meta.mapping.value.other.cabal - meta.path
--^^^^ entity.name.tag.cabal
-- ^ punctuation.separator.mapping.key-value.cabal
-- ^ punctuation.separator.key-value.cabal
-- ^ punctuation.definition.path.begin.cabal
-- ^ punctuation.separator.path.email.cabal
-- ^ punctuation.separator.path.domain.cabal
Expand All @@ -54,7 +54,7 @@ maintainer: [email protected]
-- ^^^^^^^^^^^^^^^^^^^^^^^^^ meta.mapping.value.other.cabal
-- ^^^^^^^^^^^^^^^^^^^^^^^ meta.path.email.cabal meta.string.cabal string.unquoted.cabal
--^^^^ entity.name.tag.cabal
-- ^ punctuation.separator.mapping.key-value.cabal
-- ^ punctuation.separator.key-value.cabal
-- ^ punctuation.separator.path.email.cabal
-- ^ punctuation.separator.path.domain.cabal

Expand All @@ -64,7 +64,7 @@ tests: True
-- ^ meta.mapping.cabal
-- ^^^^^^ meta.mapping.value.boolean.cabal
--^^^ entity.name.tag.cabal
-- ^ punctuation.separator.mapping.key-value.cabal
-- ^ punctuation.separator.key-value.cabal
-- ^^^^ constant.language.boolean.cabal

optimization: False
Expand All @@ -73,7 +73,7 @@ optimization: False
-- ^ meta.mapping.cabal
-- ^^^^^^^ meta.mapping.value.boolean.cabal
--^^^^^^^^^^ entity.name.tag.cabal
-- ^ punctuation.separator.mapping.key-value.cabal
-- ^ punctuation.separator.key-value.cabal
-- ^^^^ constant.language.boolean.cabal

build-type: Simple
Expand All @@ -82,15 +82,15 @@ build-type: Simple
-- ^ meta.mapping.cabal
-- ^^^^^^^^^^^^^ meta.mapping.value.other.cabal
-- ^^^^^^^ entity.name.tag.cabal
-- ^ punctuation.separator.mapping.key-value.cabal
-- ^ punctuation.separator.key-value.cabal

bug-reports: https://github.com/sublime%20hq/Packages/issues?action=new
-- <- meta.mapping.key.cabal entity.name.tag.cabal
-- ^^^^^^^^ meta.mapping.key.cabal
-- ^ meta.mapping.cabal
-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.mapping.value.urls.cabal
-- ^^^^^^^^ entity.name.tag.cabal
-- ^ punctuation.separator.mapping.key-value.cabal
-- ^ punctuation.separator.key-value.cabal
-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.path.url.cabal meta.string.cabal string.unquoted.cabal
-- ^^^ punctuation.separator.path.cabal
-- ^ punctuation.separator.path.cabal
Expand All @@ -105,7 +105,7 @@ homepage:
-- ^ meta.mapping.cabal
-- ^ meta.mapping.value.urls.cabal
-- ^^^^^ entity.name.tag.cabal
-- ^ punctuation.separator.mapping.key-value.cabal
-- ^ punctuation.separator.key-value.cabal
https://sublimehq.com
-- ^ meta.mapping.value.urls.cabal - meta.string - string
-- ^^^^^^^^^^^^^^^^^^^^^ meta.mapping.value.urls.cabal meta.path.url.cabal meta.string.cabal string.unquoted.cabal
Expand All @@ -118,7 +118,7 @@ flags: +embed_data_files -trypandoc "+Dkey: value"
-- ^ meta.mapping.cabal
-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.mapping.value.options.cabal
--^^^ entity.name.tag.cabal
-- ^ punctuation.separator.mapping.key-value.cabal
-- ^ punctuation.separator.key-value.cabal
-- ^ variable.parameter.option.haskell punctuation.definition.variable.haskell
-- ^^^^^^^^^^^^^^^^ variable.parameter.option.haskell - punctuation
-- ^ variable.parameter.option.haskell punctuation.definition.variable.haskell
Expand All @@ -131,7 +131,7 @@ ghc-options: -j +RTS -A64m -RTS
-- ^ meta.mapping.cabal
-- ^^^^^^^^^^^^^^^^^^^^ meta.mapping.value.options.cabal
--^^^^^^^^^ entity.name.tag.cabal
-- ^ punctuation.separator.mapping.key-value.cabal
-- ^ punctuation.separator.key-value.cabal
-- ^ variable.parameter.option.haskell punctuation.definition.variable.haskell
-- ^ variable.parameter.option.haskell - punctuation
-- ^ variable.parameter.option.haskell punctuation.definition.variable.haskell
Expand All @@ -147,7 +147,7 @@ exposed-modules: ,
-- ^ meta.mapping.cabal
-- ^^^ meta.mapping.value.modules.cabal
-- ^^^^^^^^^^^^ entity.name.tag.cabal
-- ^ punctuation.separator.mapping.key-value.cabal
-- ^ punctuation.separator.key-value.cabal
-- ^ punctuation.separator.sequence.cabal

exposed-modules: ModId.ModName,
Expand All @@ -156,7 +156,7 @@ exposed-modules: ModId.ModName,
-- ^ meta.mapping.cabal
-- ^^^^^^^^^^^^^^ meta.mapping.value.modules.cabal
-- ^^^^^^^^^^^^ entity.name.tag.cabal
-- ^ punctuation.separator.mapping.key-value.cabal
-- ^ punctuation.separator.key-value.cabal
-- ^^^^^ variable.namespace.haskell
-- ^ punctuation.accessor.dot.haskell
-- ^^^^^^^ variable.namespace.haskell
Expand All @@ -175,7 +175,7 @@ exposed-modules: ModId.ModName
-- ^ meta.mapping.cabal
-- ^^^^^^^^^^^^^^^ meta.mapping.value.modules.cabal
-- ^^^^^^^^^^^^ entity.name.tag.cabal
-- ^ punctuation.separator.mapping.key-value.cabal
-- ^ punctuation.separator.key-value.cabal
-- ^^^^^ variable.namespace.haskell
-- ^ punctuation.accessor.dot.haskell
-- ^^^^^^^ variable.namespace.haskell
Expand All @@ -195,7 +195,7 @@ other-modules: ModId.ModName
-- ^ meta.mapping.cabal
-- ^^^^^^^^^^^^^^^ meta.mapping.value.modules.cabal
-- ^^^^^^^^^^ entity.name.tag.cabal
-- ^ punctuation.separator.mapping.key-value.cabal
-- ^ punctuation.separator.key-value.cabal
-- ^^^^^ variable.namespace.haskell
-- ^ punctuation.accessor.dot.haskell
-- ^^^^^^^ variable.namespace.haskell
Expand All @@ -213,7 +213,7 @@ NoModule
data-files:
-- <- meta.mapping.key.cabal entity.name.tag.cabal
-- ^^^^^^^ meta.mapping.key.cabal entity.name.tag.cabal
-- ^ meta.mapping.cabal punctuation.separator.mapping.key-value.cabal
-- ^ meta.mapping.cabal punctuation.separator.key-value.cabal
-- ^ meta.mapping.value.paths.cabal
-- documentation
INSTALL.md, AUTHORS.md, README.md,
Expand Down Expand Up @@ -250,7 +250,7 @@ build-depends: pandoc,
-- ^ meta.mapping.cabal
-- ^^^^^^^^^^ meta.mapping.value.dependencies.cabal
-- ^^^^^^^^^^ entity.name.tag.cabal
-- ^ punctuation.separator.mapping.key-value.cabal
-- ^ punctuation.separator.key-value.cabal
base >= 4.8 && < 5,
-- ^^^^^^^^^^^^^^^^^^^^^^^ meta.mapping.value.dependencies.cabal
-- ^^ keyword.operator.comparison.cabal
Expand Down Expand Up @@ -284,7 +284,7 @@ executable pandoc
-- ^ meta.mapping.cabal
-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.mapping.value.dependencies.cabal
--^^^^^^^^^^^ entity.name.tag.cabal
-- ^ punctuation.separator.mapping.key-value.cabal
-- ^ punctuation.separator.key-value.cabal
-- ^ punctuation.separator.sequence.cabal
-- ^^ keyword.operator.comparison.cabal
-- ^^^ meta.number.version.cabal constant.numeric.value.cabal
Expand Down

0 comments on commit 4610728

Please sign in to comment.