mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-08 11:33:52 -05:00
Revert stylus provider
This commit is contained in:
@@ -3,7 +3,7 @@ if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/basic/fu
|
||||
endif
|
||||
|
||||
syntax keyword typescriptAsyncFuncKeyword async
|
||||
\ nextgroup=typescriptFuncKeyword,typescriptArrowFuncDef
|
||||
\ nextgroup=typescriptFuncKeyword,typescriptArrowFuncDef,typescriptArrowFuncTypeParameter
|
||||
\ skipwhite
|
||||
|
||||
syntax keyword typescriptAsyncFuncKeyword await
|
||||
@@ -28,18 +28,22 @@ syntax match typescriptArrowFuncDef contained /\K\k*\s*=>/
|
||||
\ skipwhite skipempty
|
||||
|
||||
syntax match typescriptArrowFuncDef contained /(\%(\_[^()]\+\|(\_[^()]*)\)*)\_s*=>/
|
||||
\ contains=typescriptArrowFuncArg,typescriptArrowFunc
|
||||
\ contains=typescriptArrowFuncArg,typescriptArrowFunc,@typescriptCallSignature
|
||||
\ nextgroup=@typescriptExpression,typescriptBlock
|
||||
\ skipwhite skipempty
|
||||
|
||||
syntax region typescriptArrowFuncDef contained start=/(\%(\_[^()]\+\|(\_[^()]*)\)*):/ end=/=>/
|
||||
\ contains=typescriptArrowFuncArg,typescriptArrowFunc,typescriptTypeAnnotation
|
||||
syntax region typescriptArrowFuncDef contained start=/(\%(\_[^()]\+\|(\_[^()]*)\)*):/ matchgroup=typescriptArrowFunc end=/=>/
|
||||
\ contains=typescriptArrowFuncArg,typescriptTypeAnnotation,@typescriptCallSignature
|
||||
\ nextgroup=@typescriptExpression,typescriptBlock
|
||||
\ skipwhite skipempty keepend
|
||||
|
||||
syntax region typescriptArrowFuncTypeParameter start=/</ end=/>/
|
||||
\ contains=@typescriptTypeParameterCluster
|
||||
\ nextgroup=typescriptArrowFuncDef
|
||||
\ contained skipwhite skipnl
|
||||
|
||||
syntax match typescriptArrowFunc /=>/
|
||||
syntax match typescriptArrowFuncArg contained /\K\k*/
|
||||
syntax region typescriptArrowFuncArg contained start=/<\|(/ end=/\ze=>/ contains=@typescriptCallSignature
|
||||
|
||||
syntax region typescriptReturnAnnotation contained start=/:/ end=/{/me=e-1 contains=@typescriptType nextgroup=typescriptBlock
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ endif
|
||||
" Language: Diff (context or unified)
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Translations by Jakson Alves de Aquino.
|
||||
" Last Change: 2020 Dec 07
|
||||
" Last Change: 2020 Dec 30
|
||||
|
||||
" Quit when a (custom) syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
@@ -352,11 +352,16 @@ syn match diffLine "^\d\+\(,\d\+\)\=[cda]\d\+\>.*"
|
||||
syn match diffFile "^diff\>.*"
|
||||
syn match diffFile "^Index: .*"
|
||||
syn match diffFile "^==== .*"
|
||||
" Old style diff uses *** for old and --- for new.
|
||||
" Unified diff uses --- for old and +++ for new; names are wrong but it works.
|
||||
syn match diffOldFile "^+++ .*"
|
||||
syn match diffOldFile "^\*\*\* .*"
|
||||
syn match diffNewFile "^--- .*"
|
||||
|
||||
if search('^@@ -\S\+ +\S\+ @@', 'nw', '', 100)
|
||||
" unified
|
||||
syn match diffOldFile "^--- .*"
|
||||
syn match diffNewFile "^+++ .*"
|
||||
else
|
||||
" context / old style
|
||||
syn match diffOldFile "^\*\*\* .*"
|
||||
syn match diffNewFile "^--- .*"
|
||||
endif
|
||||
|
||||
" Used by git
|
||||
syn match diffIndexLine "^index \x\x\x\x.*"
|
||||
|
||||
@@ -5,8 +5,8 @@ endif
|
||||
" Vim syntax file
|
||||
" Language: fstab file
|
||||
" Maintainer: Radu Dineiu <radu.dineiu@gmail.com>
|
||||
" URL: https://raw.github.com/rid9/vim-fstab/master/fstab.vim
|
||||
" Last Change: 2020 Aug 06
|
||||
" URL: https://raw.github.com/rid9/vim-fstab/master/syntax/fstab.vim
|
||||
" Last Change: 2020 Dec 30
|
||||
" Version: 1.4
|
||||
"
|
||||
" Credits:
|
||||
|
||||
@@ -64,8 +64,7 @@ syntax keyword odinDefer defer
|
||||
syntax region odinChar start=/\v'/ skip=/\v\\./ end=/\v'/
|
||||
syntax region odinString start=/\v"/ skip=/\v\\./ end=/\v"/
|
||||
|
||||
syntax match odinFunction "\v<\w*>(\s*::\s*)@="
|
||||
syntax match odinDynamicFunction "\v<\w*(\s*:\=\s*\(.*\))@="
|
||||
syntax match odinFunction "\v<\w*>(\s*::\s*proc)@="
|
||||
|
||||
syntax match odinTagNote "@\<\w\+\>" display
|
||||
|
||||
@@ -145,7 +144,6 @@ highlight link odinBitField Structure
|
||||
highlight link odinBitSet Structure
|
||||
|
||||
highlight link odinFunction Function
|
||||
highlight link odinDynamicFunction Function
|
||||
|
||||
highlight link odinMacro Macro
|
||||
highlight link odinIf Conditional
|
||||
|
||||
@@ -7,13 +7,16 @@ endif
|
||||
" Filenames: *.sml *.sig
|
||||
" Maintainers: Markus Mottl <markus.mottl@gmail.com>
|
||||
" Fabrizio Zeno Cornelli <zeno@filibusta.crema.unimi.it>
|
||||
" URL: http://www.ocaml.info/vim/syntax/sml.vim
|
||||
" Last Change: 2006 Oct 23 - Fixed character highlighting bug (MM)
|
||||
" 2002 Jun 02 - Fixed small typo (MM)
|
||||
" 2001 Nov 20 - Fixed small highlighting bug with modules (MM)
|
||||
" Last Change: 2019 Oct 01 - Only spell check strings & comments (Chuan Wei Foo)
|
||||
" 2015 Aug 31 - Fixed opening of modules (Ramana Kumar)
|
||||
" 2006 Oct 23 - Fixed character highlighting bug (MM)
|
||||
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
|
||||
" Disable spell checking of syntax.
|
||||
syn spell notoplevel
|
||||
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -56,7 +59,7 @@ syn region smlEncl transparent matchgroup=smlKeyword start="#\[" matchgroup=sm
|
||||
|
||||
|
||||
" Comments
|
||||
syn region smlComment start="(\*" end="\*)" contains=smlComment,smlTodo
|
||||
syn region smlComment start="(\*" end="\*)" contains=smlComment,smlTodo,@Spell
|
||||
syn keyword smlTodo contained TODO FIXME XXX
|
||||
|
||||
|
||||
@@ -86,7 +89,7 @@ syn region smlSig matchgroup=smlModule start="\<sig\>" matchgroup=smlModule en
|
||||
syn region smlModSpec matchgroup=smlKeyword start="\<structure\>" matchgroup=smlModule end="\<\u\(\w\|'\)*\>" contained contains=@smlAllErrs,smlComment skipwhite skipempty nextgroup=smlModTRWith,smlMPRestr
|
||||
|
||||
" "open"
|
||||
syn region smlNone matchgroup=smlKeyword start="\<open\>" matchgroup=smlModule end="\<\u\(\w\|'\)*\(\.\u\(\w\|'\)*\)*\>" contains=@smlAllErrs,smlComment
|
||||
syn region smlNone matchgroup=smlKeyword start="\<open\>" matchgroup=smlModule end="\<\w\(\w\|'\)*\(\.\w\(\w\|'\)*\)*\>" contains=@smlAllErrs,smlComment
|
||||
|
||||
" "structure" - somewhat complicated stuff ;-)
|
||||
syn region smlModule matchgroup=smlKeyword start="\<\(structure\|functor\)\>" matchgroup=smlModule end="\<\u\(\w\|'\)*\>" contains=@smlAllErrs,smlComment skipwhite skipempty nextgroup=smlPreDef
|
||||
@@ -140,7 +143,7 @@ syn match smlModPath "\u\(\w\|'\)*\."he=e-1
|
||||
|
||||
syn match smlCharacter +#"\\""\|#"."\|#"\\\d\d\d"+
|
||||
syn match smlCharErr +#"\\\d\d"\|#"\\\d"+
|
||||
syn region smlString start=+"+ skip=+\\\\\|\\"+ end=+"+
|
||||
syn region smlString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=@Spell
|
||||
|
||||
syn match smlFunDef "=>"
|
||||
syn match smlRefAssign ":="
|
||||
@@ -153,9 +156,9 @@ syn match smlKeyChar ";"
|
||||
syn match smlKeyChar "\*"
|
||||
syn match smlKeyChar "="
|
||||
|
||||
syn match smlNumber "\<-\=\d\+\>"
|
||||
syn match smlNumber "\<-\=0[x|X]\x\+\>"
|
||||
syn match smlReal "\<-\=\d\+\.\d*\([eE][-+]\=\d\+\)\=[fl]\=\>"
|
||||
syn match smlNumber "\<-\=\d\+\>"
|
||||
syn match smlNumber "\<-\=0[x|X]\x\+\>"
|
||||
syn match smlReal "\<-\=\d\+\.\d*\([eE][-+]\=\d\+\)\=[fl]\=\>"
|
||||
|
||||
" Synchronization
|
||||
syn sync minlines=20
|
||||
@@ -171,49 +174,49 @@ syn sync match smlSigSync groupthere smlSig "\<end\>"
|
||||
" Define the default highlighting.
|
||||
" Only when an item doesn't have highlighting yet
|
||||
|
||||
hi def link smlBraceErr Error
|
||||
hi def link smlBrackErr Error
|
||||
hi def link smlParenErr Error
|
||||
hi def link smlBraceErr Error
|
||||
hi def link smlBrackErr Error
|
||||
hi def link smlParenErr Error
|
||||
|
||||
hi def link smlCommentErr Error
|
||||
hi def link smlCommentErr Error
|
||||
|
||||
hi def link smlEndErr Error
|
||||
hi def link smlThenErr Error
|
||||
hi def link smlEndErr Error
|
||||
hi def link smlThenErr Error
|
||||
|
||||
hi def link smlCharErr Error
|
||||
hi def link smlCharErr Error
|
||||
|
||||
hi def link smlComment Comment
|
||||
hi def link smlComment Comment
|
||||
|
||||
hi def link smlModPath Include
|
||||
hi def link smlModule Include
|
||||
hi def link smlModParam1 Include
|
||||
hi def link smlModType Include
|
||||
hi def link smlMPRestr3 Include
|
||||
hi def link smlFullMod Include
|
||||
hi def link smlModPath Include
|
||||
hi def link smlModule Include
|
||||
hi def link smlModParam1 Include
|
||||
hi def link smlModType Include
|
||||
hi def link smlMPRestr3 Include
|
||||
hi def link smlFullMod Include
|
||||
hi def link smlModTypeRestr Include
|
||||
hi def link smlWith Include
|
||||
hi def link smlMTDef Include
|
||||
hi def link smlWith Include
|
||||
hi def link smlMTDef Include
|
||||
|
||||
hi def link smlConstructor Constant
|
||||
|
||||
hi def link smlModPreRHS Keyword
|
||||
hi def link smlMPRestr2 Keyword
|
||||
hi def link smlKeyword Keyword
|
||||
hi def link smlFunDef Keyword
|
||||
hi def link smlRefAssign Keyword
|
||||
hi def link smlKeyChar Keyword
|
||||
hi def link smlAnyVar Keyword
|
||||
hi def link smlTopStop Keyword
|
||||
hi def link smlOperator Keyword
|
||||
hi def link smlModPreRHS Keyword
|
||||
hi def link smlMPRestr2 Keyword
|
||||
hi def link smlKeyword Keyword
|
||||
hi def link smlFunDef Keyword
|
||||
hi def link smlRefAssign Keyword
|
||||
hi def link smlKeyChar Keyword
|
||||
hi def link smlAnyVar Keyword
|
||||
hi def link smlTopStop Keyword
|
||||
hi def link smlOperator Keyword
|
||||
|
||||
hi def link smlBoolean Boolean
|
||||
hi def link smlCharacter Character
|
||||
hi def link smlNumber Number
|
||||
hi def link smlReal Float
|
||||
hi def link smlString String
|
||||
hi def link smlType Type
|
||||
hi def link smlTodo Todo
|
||||
hi def link smlEncl Keyword
|
||||
hi def link smlBoolean Boolean
|
||||
hi def link smlCharacter Character
|
||||
hi def link smlNumber Number
|
||||
hi def link smlReal Float
|
||||
hi def link smlString String
|
||||
hi def link smlType Type
|
||||
hi def link smlTodo Todo
|
||||
hi def link smlEncl Keyword
|
||||
|
||||
|
||||
let b:current_syntax = "sml"
|
||||
|
||||
1238
syntax/stylus.vim
1238
syntax/stylus.vim
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user