summaryrefslogtreecommitdiffstats
path: root/syntax
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-03-02 00:43:28 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2020-03-02 00:43:28 +0100
commitaee260a301b887024caea286c4683e39f1a6217d (patch)
tree86d3b48dd9665067c9575ea91fb4ee25a40b9be2 /syntax
parent6b540d7db030e4110aa3a31dd06c6c41387444db (diff)
downloadvim-polyglot-aee260a301b887024caea286c4683e39f1a6217d.tar.gz
vim-polyglot-aee260a301b887024caea286c4683e39f1a6217d.zip
Remove jasmine syntax, fixes #464
Diffstat (limited to 'syntax')
-rw-r--r--syntax/jasmine.vim88
-rw-r--r--syntax/terraform.vim4
2 files changed, 2 insertions, 90 deletions
diff --git a/syntax/jasmine.vim b/syntax/jasmine.vim
deleted file mode 100644
index 24a299ed..00000000
--- a/syntax/jasmine.vim
+++ /dev/null
@@ -1,88 +0,0 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jasmine') == -1
-
-" Syntax highlighting for jasmine specs (used by http://github.com/thomd/vim-jasmine).
-
-" if b:current_syntax is defined, some other syntax files, earlier in 'runtimepath' was already loaded
-if exists("b:current_syntax")
- finish
-endif
-
-" match the case of syntax elements
-syntax case match
-
-" keywords
-syntax keyword jasmineSuite describe it beforeEach afterEach beforeAll afterAll
-syntax keyword jasmine jasmine
-
-" special
-syntax match jasmineSpecial /\.Ajax/
-syntax match jasmineSpecial /\.addMatcher/
-syntax match jasmineSpecial /\.getEnv/
-syntax match jasmineSpecial /\.loadConfigFile/
-syntax match jasmineSpecial /\.onComplete/
-syntax match jasmineSpecial /\.QueryString/
-syntax match jasmineSpecial /\.HtmlSpecFilter/
-syntax match jasmineSpecial /\.addCustomEqualityTester/
-syntax match jasmineSpecial /\.configureDefaultReporter/
-syntax match jasmineSpecial /\.execute/
-
-" clock
-syntax match jasmineClock /\.Timer/
-syntax match jasmineClock /\.clock/
-syntax match jasmineClock /\.tick/
-syntax match jasmineClock /\.mockDate/
-
-" disabled
-syntax keyword jasmineDisabled xdescribe xit
-
-" focused
-syntax keyword jasmineFocused fdescribe fit
-
-" expectation
-syntax keyword jasmineExpectation expect
-
-" not
-syntax region jasmineNot start=/not/ end=/\.to/me=s-1
-
-" matchers
-syntax match jasmineMatcher /\.to\h\+/
-syntax match jasmineMatcher /\.objectContaining/
-syntax match jasmineMatcher /\.arrayContaining/
-syntax match jasmineMatcher /\.anything/
-syntax match jasmineMatcher /\.any/
-syntax keyword jasmineSpy spyOn
-syntax match jasmineSpy /\.createSpy/
-syntax match jasmineSpyMatcher /and\h\+/
-
-" jasmine is a subset of the javascript language, thus we need to activate
-" javascript syntax highlighting and add new jasmin group names to the
-" JavaScriptAll cluster which is defined there
-runtime! syntax/javascript.vim
-syntax cluster JavaScriptAll add=
- \ jasmine,
- \ jasmineClock,
- \ jasmineDisabled,
- \ jasmineFocused,
- \ jasmineExpectation,
- \ jasmineMatcher,
- \ jasmineNot,
- \ jasmineSpecial,
- \ jasmineSpy,
- \ jasmineSpyMatcher,
- \ jasmineSuite
-
-let b:current_syntax = "jasmine"
-
-hi def link jasmine Special
-hi def link jasmineClock Special
-hi def link jasmineDisabled Error
-hi def link jasmineFocused Special
-hi def link jasmineExpectation Statement
-hi def link jasmineMatcher Statement
-hi def link jasmineNot Special
-hi def link jasmineSpecial Special
-hi def link jasmineSpy Special
-hi def link jasmineSpyMatcher Statement
-hi def link jasmineSuite Statement
-
-endif
diff --git a/syntax/terraform.vim b/syntax/terraform.vim
index d72c7857..70e948af 100644
--- a/syntax/terraform.vim
+++ b/syntax/terraform.vim
@@ -5451,8 +5451,8 @@ syn region terraValueString start=/"/ skip=/\\\\\|\\"/ end=/"/ contains=terraS
syn region terraStringInterp matchgroup=terraBraces start=/\${/ end=/}/ contained contains=ALL
syn region terraHereDocText start=/<<-\?\z([a-z0-9A-Z]\+\)/ end=/^\s*\z1/ contains=terraStringInterp
-"" TODO match keywords here, not a-z+
-syn match terraValueFunction "[a-z]\+(\@="
+"" Functions.
+syn match terraValueFunction "[a-z0-9]\+(\@="
""" HCL2
syn keyword terraContent content