Compare commits

...

6 Commits

Author SHA1 Message Date
Adam Stankiewicz
d15651463a Update 2019-11-15 17:27:14 +01:00
Adam Stankiewicz
0c79dd3e73 Update 2019-11-12 21:56:06 +01:00
Adam Stankiewicz
4e95df7c7e Update 2019-11-04 09:04:28 +01:00
Adam Stankiewicz
31c55b85a0 Change octave provider, closes #436 2019-10-16 14:57:13 +02:00
Adam Stankiewicz
199846c6d8 Update 2019-10-16 14:56:00 +02:00
Adam Stankiewicz
f95026252c Update everything, closes #435 2019-09-27 19:47:32 +02:00
72 changed files with 3398 additions and 1163 deletions

View File

@@ -129,7 +129,7 @@ If you need full functionality of any plugin, please use it directly with your p
- [nix](https://github.com/LnL7/vim-nix) (syntax, indent, compiler, ftplugin) - [nix](https://github.com/LnL7/vim-nix) (syntax, indent, compiler, ftplugin)
- [objc](https://github.com/b4winckler/vim-objc) (ftplugin, syntax, indent) - [objc](https://github.com/b4winckler/vim-objc) (ftplugin, syntax, indent)
- [ocaml](https://github.com/rgrinberg/vim-ocaml) (syntax, indent, compiler, ftplugin) - [ocaml](https://github.com/rgrinberg/vim-ocaml) (syntax, indent, compiler, ftplugin)
- [octave](https://github.com/vim-scripts/octave.vim--) (syntax) - [octave](https://github.com/McSinyx/vim-octave) (syntax, indent)
- [opencl](https://github.com/petRUShka/vim-opencl) (syntax, indent, ftplugin) - [opencl](https://github.com/petRUShka/vim-opencl) (syntax, indent, ftplugin)
- [perl](https://github.com/vim-perl/vim-perl) (syntax, indent, ftplugin) - [perl](https://github.com/vim-perl/vim-perl) (syntax, indent, ftplugin)
- [pgsql](https://github.com/lifepillar/pgsql.vim) (syntax, indent) - [pgsql](https://github.com/lifepillar/pgsql.vim) (syntax, indent)
@@ -152,7 +152,7 @@ If you need full functionality of any plugin, please use it directly with your p
- [raml](https://github.com/IN3D/vim-raml) (syntax, ftplugin) - [raml](https://github.com/IN3D/vim-raml) (syntax, ftplugin)
- [reason](https://github.com/reasonml-editor/vim-reason-plus) (syntax, indent) - [reason](https://github.com/reasonml-editor/vim-reason-plus) (syntax, indent)
- [rspec](https://github.com/sheerun/rspec.vim) (syntax) - [rspec](https://github.com/sheerun/rspec.vim) (syntax)
- [rst](https://github.com/marshallward/vim-restructuredtext) (syntax, autoload, ftplugin) - [rst](https://github.com/marshallward/vim-restructuredtext) (syntax, indent, autoload, ftplugin)
- [ruby](https://github.com/vim-ruby/vim-ruby) (syntax, indent, compiler, autoload, ftplugin) - [ruby](https://github.com/vim-ruby/vim-ruby) (syntax, indent, compiler, autoload, ftplugin)
- [rust](https://github.com/rust-lang/rust.vim) (syntax, indent, compiler, autoload, ftplugin) - [rust](https://github.com/rust-lang/rust.vim) (syntax, indent, compiler, autoload, ftplugin)
- [sbt](https://github.com/derekwyatt/vim-sbt) (syntax) - [sbt](https://github.com/derekwyatt/vim-sbt) (syntax)
@@ -168,7 +168,7 @@ If you need full functionality of any plugin, please use it directly with your p
- [svg](https://github.com/vim-scripts/svg.vim) (syntax) - [svg](https://github.com/vim-scripts/svg.vim) (syntax)
- [swift](https://github.com/keith/swift.vim) (syntax, indent, ftplugin) - [swift](https://github.com/keith/swift.vim) (syntax, indent, ftplugin)
- [sxhkd](https://github.com/baskerville/vim-sxhkdrc) (syntax) - [sxhkd](https://github.com/baskerville/vim-sxhkdrc) (syntax)
- [systemd](https://github.com/wgwoods/vim-systemd-syntax) (syntax) - [systemd](https://github.com/wgwoods/vim-systemd-syntax) (syntax, ftplugin)
- [terraform](https://github.com/hashivim/vim-terraform) (syntax, indent, autoload, ftplugin) - [terraform](https://github.com/hashivim/vim-terraform) (syntax, indent, autoload, ftplugin)
- [textile](https://github.com/timcharper/textile.vim) (syntax, ftplugin) - [textile](https://github.com/timcharper/textile.vim) (syntax, ftplugin)
- [thrift](https://github.com/solarnz/thrift.vim) (syntax) - [thrift](https://github.com/solarnz/thrift.vim) (syntax)

View File

@@ -2,6 +2,11 @@ if !exists('g:polyglot_disabled') || !(index(g:polyglot_disabled, 'typescript')
" modified from html.vim " modified from html.vim
" For matchit plugin " For matchit plugin
if get(g:, 'vim_jsx_pretty_disable_tsx', 0)
finish
endif
if exists("loaded_matchit") if exists("loaded_matchit")
let b:match_ignorecase = 0 let b:match_ignorecase = 0
let b:match_words = '(:),\[:\],{:},<:>,' . let b:match_words = '(:),\[:\],{:},<:>,' .

View File

@@ -21,7 +21,7 @@ if exists('s:did_indent')
endif endif
setlocal indentexpr=GetJsxIndent() setlocal indentexpr=GetJsxIndent()
setlocal indentkeys=0{,0},0),0],0\,,!^F,o,O,e,*<Return>,<>>,<<>,/ setlocal indentkeys=0{,0},0),0],0?,0\*,0\,,!^F,:,<:>,o,O,e,<>>,=*/
function! GetJsxIndent() function! GetJsxIndent()
return jsx_pretty#indent#get(function('GetJavascriptIndent')) return jsx_pretty#indent#get(function('GetJavascriptIndent'))

View File

@@ -9,6 +9,10 @@ if !exists('g:polyglot_disabled') || !(index(g:polyglot_disabled, 'typescript')
" "
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
if get(g:, 'vim_jsx_pretty_disable_tsx', 0)
finish
endif
if exists('b:did_indent') if exists('b:did_indent')
let s:did_indent = b:did_indent let s:did_indent = b:did_indent
unlet b:did_indent unlet b:did_indent
@@ -22,7 +26,7 @@ if exists('s:did_indent')
endif endif
setlocal indentexpr=GetJsxIndent() setlocal indentexpr=GetJsxIndent()
setlocal indentkeys=0{,0},0),0],0\,,!^F,o,O,e,*<Return>,<>>,<<>,/ setlocal indentkeys=0{,0},0),0],0?,0\*,0\,,!^F,:,<:>,o,O,e,<>>,=*/
function! GetJsxIndent() function! GetJsxIndent()
return jsx_pretty#indent#get(function('GetTypescriptIndent')) return jsx_pretty#indent#get(function('GetTypescriptIndent'))

View File

@@ -36,6 +36,19 @@ if exists('g:cpp_member_variable_highlight') && g:cpp_member_variable_highlight
hi def link cCustomMemVar Function hi def link cCustomMemVar Function
endif endif
" -----------------------------------------------------------------------------
" Highlight POSIX functions.
" -----------------------------------------------------------------------------
if exists('g:cpp_posix_standard') && g:cpp_posix_standard
syn keyword cPOSIXFunction socket accept bind connect getsockname
syn keyword cPOSIXFunction listen recv recvfrom recvmsg
syn keyword cPOSIXFunction send sendto sendmsg setsockopt socketpair
syn keyword cPOSIXFunction htonl htons ntohl ntohs
syn keyword cPOSIXFunction inet_ntop inet_pton getaddrinfo
syn keyword cPOSIXFunction poll select pselect
hi def link cPOSIXFunction Function
endif
" ----------------------------------------------------------------------------- " -----------------------------------------------------------------------------
" Source: aftersyntaxc.vim " Source: aftersyntaxc.vim
" ----------------------------------------------------------------------------- " -----------------------------------------------------------------------------

View File

@@ -633,21 +633,19 @@ syntax keyword cppSTLios unitbuf
syntax keyword cppSTLios uppercase syntax keyword cppSTLios uppercase
"syntax keyword cppSTLios ws "syntax keyword cppSTLios ws
syntax keyword cppSTLiterator back_insert_iterator syntax keyword cppSTLiterator back_insert_iterator
syntax keyword cppSTLiterator bidirectional_iterator
syntax keyword cppSTLiterator const_iterator syntax keyword cppSTLiterator const_iterator
syntax keyword cppSTLiterator const_reverse_iterator syntax keyword cppSTLiterator const_reverse_iterator
syntax keyword cppSTLiterator forward_iterator
syntax keyword cppSTLiterator front_insert_iterator syntax keyword cppSTLiterator front_insert_iterator
syntax keyword cppSTLiterator input_iterator
syntax keyword cppSTLiterator insert_iterator syntax keyword cppSTLiterator insert_iterator
syntax keyword cppSTLiterator istreambuf_iterator syntax keyword cppSTLiterator istreambuf_iterator
syntax keyword cppSTLiterator istream_iterator syntax keyword cppSTLiterator istream_iterator
syntax keyword cppSTLiterator ostreambuf_iterator
syntax keyword cppSTLiterator ostream_iterator
syntax keyword cppSTLiterator iterator syntax keyword cppSTLiterator iterator
syntax keyword cppSTLiterator ostream_iterator syntax keyword cppSTLiterator ostream_iterator
syntax keyword cppSTLiterator output_iterator syntax keyword cppSTLiterator output_iterator
syntax keyword cppSTLiterator random_access_iterator
syntax keyword cppSTLiterator raw_storage_iterator syntax keyword cppSTLiterator raw_storage_iterator
syntax keyword cppSTLiterator reverse_bidirectional_iterator syntax keyword cppSTLiterator move_iterator
syntax keyword cppSTLiterator reverse_iterator syntax keyword cppSTLiterator reverse_iterator
syntax keyword cppSTLiterator_tag bidirectional_iterator_tag syntax keyword cppSTLiterator_tag bidirectional_iterator_tag
syntax keyword cppSTLiterator_tag forward_iterator_tag syntax keyword cppSTLiterator_tag forward_iterator_tag
@@ -1593,6 +1591,8 @@ endif " C++14
if !exists("cpp_no_cpp17") if !exists("cpp_no_cpp17")
syntax keyword cppSTLnamespace pmr
" algorithm " algorithm
syntax keyword cppSTLfunction clamp syntax keyword cppSTLfunction clamp
syntax keyword cppSTLfunction for_each_n syntax keyword cppSTLfunction for_each_n
@@ -1985,87 +1985,278 @@ endif " C++17
if !exists("cpp_no_cpp20") if !exists("cpp_no_cpp20")
" type_traits
syntax keyword cppSTLtype remove_cvref remove_cvref_t
syntax keyword cppType char8_t syntax keyword cppType char8_t
syntax keyword cppStatement co_yield co_return co_await syntax keyword cppStatement co_yield co_return co_await
syntax keyword cppStorageClass consteval syntax keyword cppStorageClass consteval
syntax keyword cppSTLnamespace ranges
" algorithm
syntax keyword cppSTLfunction shift_left
syntax keyword cppSTLfunction shift_right
syntax keyword cppSTLfunction lexicographical_compare_three_way
" bit
syntax keyword cppSTLcast bit_cast
syntax keyword cppSTLfunction ispow2
syntax keyword cppSTLfunction ceil2
syntax keyword cppSTLfunction floor2
syntax keyword cppSTLfunction log2p1
syntax keyword cppSTLfunction rotl
syntax keyword cppSTLfunction rotr
syntax keyword cppSTLfunction countl_zero
syntax keyword cppSTLfunction countl_one
syntax keyword cppSTLfunction countr_zero
syntax keyword cppSTLfunction countr_one
syntax keyword cppSTLfunction popcount
syntax keyword cppSTLtype endian
" compare
syntax keyword cppSTLtype weak_equality
syntax keyword cppSTLtype strong_equality
syntax keyword cppSTLtype partial_ordering
syntax keyword cppSTLtype weak_ordering
syntax keyword cppSTLtype strong_ordering
syntax keyword cppSTLtype common_comparison_category
syntax keyword cppSTLtype compare_three_way_result
syntax keyword cppSTLtype compare_three_way
syntax keyword cppSTLtype strong_order
syntax keyword cppSTLtype weak_order
syntax keyword cppSTLtype parital_order
syntax keyword cppSTLtype compare_strong_order_fallback
syntax keyword cppSTLtype compare_weak_order_fallback
syntax keyword cppSTLtype compare_parital_order_fallback
syntax keyword cppSTLfunction is_eq
syntax keyword cppSTLfunction is_neq
syntax keyword cppSTLfunction is_lt
syntax keyword cppSTLfunction is_lteq
syntax keyword cppSTLfunction is_gt
syntax keyword cppSTLfunction is_gteq
" format
syntax keyword cppSTLtype formatter
syntax keyword cppSTLtype basic_format_parse_context
syntax keyword cppSTLtype format_parse_context
syntax keyword cppSTLtype wformat_parse_context
syntax keyword cppSTLtype basic_format_context
syntax keyword cppSTLtype format_context
syntax keyword cppSTLtype wformat_context
syntax keyword cppSTLtype basic_format_arg
syntax keyword cppSTLtype basic_format_args
syntax keyword cppSTLtype format_args
syntax keyword cppSTLtype wformat_args
syntax keyword cppSTLtype format_args_t
syntax keyword cppSTLtype format_error
syntax keyword cppSTLfuntion format
syntax keyword cppSTLfuntion format_to
syntax keyword cppSTLfuntion format_to_n
syntax keyword cppSTLfuntion formatted_size
syntax keyword cppSTLfuntion vformat
syntax keyword cppSTLfuntion vformat_to
syntax keyword cppSTLfuntion visit_format_arg
syntax keyword cppSTLfuntion make_format_args
syntax keyword cppSTLfuntion make_wformat_args
" iterator
syntax keyword cppSTLtype default_sentinel_t unreachable_sentinel_t
syntax keyword cppSTLiterator common_iterator
syntax keyword cppSTLiterator counted_iterator
syntax keyword cppSTLiterator_tag contiguous_iterator_tag
" memory
syntax keyword cppSTLfunction to_address
syntax keyword cppSTLfunction assume_aligned
syntax keyword cppSTLfunction make_unique_default_init
syntax keyword cppSTLfunction allocate_shared_default_init
" source_location
syntax keyword cppSTLtype source_location
" span
syntax keyword cppSTLtype span
syntax keyword cppSTLfunction as_bytes
syntax keyword cppSTLfunction as_writable_bytes
syntax keyword cppSTLconstant dynamic_extent
" syncstream
syntax keyword cppSTLtype basic_syncbuf
syntax keyword cppSTLtype basic_osyncstream
syntax keyword cppSTLtype syncbuf
syntax keyword cppSTLtype wsyncbuf
syntax keyword cppSTLtype osyncstream
syntax keyword cppSTLtype wosyncstream
" type_traits
syntax keyword cppSTLtype remove_cvref remove_cvref_t
syntax keyword cppSTLtype common_reference common_reference_t
syntax keyword cppSTLfunction is_constant_evaluated
syntax keyword cppSTLfunction is_pointer_interconvertible
syntax keyword cppSTLfunction is_corresponding_member
syntax keyword cppSTLtype is_nothrow_convertible
syntax keyword cppSTLbool is_nothrow_convertible_v
syntax keyword cppSTLtype is_layout_compatible
syntax keyword cppSTLbool is_layout_compatible_v
syntax keyword cppSTLtype is_bounded_array
syntax keyword cppSTLbool is_bounded_array_v
syntax keyword cppSTLtype is_unbounded_array
syntax keyword cppSTLbool is_unbounded_array_v
syntax keyword cppSTLtype is_pointer_interconvertible_base_of
syntax keyword cppSTLbool is_pointer_interconvertible_base_of_v
syntax keyword cppSTLtype has_strong_structural_equality
syntax keyword cppSTLbool has_strong_structural_equality_v
" version
" TODO
endif endif
if exists('g:cpp_concepts_highlight') && g:cpp_concepts_highlight if exists('g:cpp_concepts_highlight')
syntax keyword cppStatement concept syntax keyword cppStatement concept
syntax keyword cppStorageClass requires syntax keyword cppStorageClass requires
syntax keyword cppSTLtype DefaultConstructible
syntax keyword cppSTLtype MoveConstructible if g:cpp_concepts_highlight == 1
syntax keyword cppSTLtype CopyConstructible syntax keyword cppSTLconcept DefaultConstructible
syntax keyword cppSTLtype MoveAssignable syntax keyword cppSTLconcept MoveConstructible
syntax keyword cppSTLtype CopyAssignable syntax keyword cppSTLconcept CopyConstructible
syntax keyword cppSTLtype Destructible syntax keyword cppSTLconcept MoveAssignable
syntax keyword cppSTLtype TriviallyCopyable syntax keyword cppSTLconcept CopyAssignable
syntax keyword cppSTLtype TrivialType syntax keyword cppSTLconcept Destructible
syntax keyword cppSTLtype StandardLayoutType syntax keyword cppSTLconcept TriviallyCopyable
syntax keyword cppSTLtype PODType syntax keyword cppSTLconcept TrivialType
syntax keyword cppSTLtype EqualityComparable syntax keyword cppSTLconcept StandardLayoutType
syntax keyword cppSTLtype LessThanComparable syntax keyword cppSTLconcept PODType
syntax keyword cppSTLtype Swappable syntax keyword cppSTLconcept EqualityComparable
syntax keyword cppSTLtype ValueSwappable syntax keyword cppSTLconcept LessThanComparable
syntax keyword cppSTLtype NullablePointer syntax keyword cppSTLconcept Swappable
syntax keyword cppSTLtype Hash syntax keyword cppSTLconcept ValueSwappable
syntax keyword cppSTLtype Allocator syntax keyword cppSTLconcept NullablePointer
syntax keyword cppSTLtype FunctionObject syntax keyword cppSTLconcept Hash
syntax keyword cppSTLtype Callable syntax keyword cppSTLconcept Allocator
syntax keyword cppSTLtype Predicate syntax keyword cppSTLconcept FunctionObject
syntax keyword cppSTLtype BinaryPredicate syntax keyword cppSTLconcept Callable
syntax keyword cppSTLtype Compare syntax keyword cppSTLconcept Predicate
syntax keyword cppSTLtype Container syntax keyword cppSTLconcept BinaryPredicate
syntax keyword cppSTLtype ReversibleContainer syntax keyword cppSTLconcept Compare
syntax keyword cppSTLtype AllocatorAwareContainer syntax keyword cppSTLconcept Container
syntax keyword cppSTLtype SequenceContainer syntax keyword cppSTLconcept ReversibleContainer
syntax keyword cppSTLtype ContiguousContainer syntax keyword cppSTLconcept AllocatorAwareContainer
syntax keyword cppSTLtype AssociativeContainer syntax keyword cppSTLconcept SequenceContainer
syntax keyword cppSTLtype UnorderedAssociativeContainer syntax keyword cppSTLconcept ContiguousContainer
syntax keyword cppSTLtype DefaultInsertable syntax keyword cppSTLconcept AssociativeContainer
syntax keyword cppSTLtype CopyInsertable syntax keyword cppSTLconcept UnorderedAssociativeContainer
syntax keyword cppSTLtype CopyInsertable syntax keyword cppSTLconcept DefaultInsertable
syntax keyword cppSTLtype MoveInsertable syntax keyword cppSTLconcept CopyInsertable
syntax keyword cppSTLtype EmplaceConstructible syntax keyword cppSTLconcept CopyInsertable
syntax keyword cppSTLtype Erasable syntax keyword cppSTLconcept MoveInsertable
syntax keyword cppSTLtype Iterator syntax keyword cppSTLconcept EmplaceConstructible
syntax keyword cppSTLtype InputIterator syntax keyword cppSTLconcept Erasable
syntax keyword cppSTLtype OutputIterator syntax keyword cppSTLconcept Iterator
syntax keyword cppSTLtype ForwardIterator syntax keyword cppSTLconcept InputIterator
syntax keyword cppSTLtype BidirectionalIterator syntax keyword cppSTLconcept OutputIterator
syntax keyword cppSTLtype RandomAccessIterator syntax keyword cppSTLconcept ForwardIterator
syntax keyword cppSTLtype ContiguousIterator syntax keyword cppSTLconcept BidirectionalIterator
syntax keyword cppSTLtype UnformattedInputFunction syntax keyword cppSTLconcept RandomAccessIterator
syntax keyword cppSTLtype FormattedInputFunction syntax keyword cppSTLconcept ContiguousIterator
syntax keyword cppSTLtype UnformattedOutputFunction syntax keyword cppSTLconcept UnformattedInputFunction
syntax keyword cppSTLtype FormattedOutputFunction syntax keyword cppSTLconcept FormattedInputFunction
syntax keyword cppSTLtype SeedSequence syntax keyword cppSTLconcept UnformattedOutputFunction
syntax keyword cppSTLtype UniformRandomBitGenerator syntax keyword cppSTLconcept FormattedOutputFunction
syntax keyword cppSTLtype RandomNumberEngine syntax keyword cppSTLconcept SeedSequence
syntax keyword cppSTLtype RandomNumberEngineAdaptor syntax keyword cppSTLconcept UniformRandomBitGenerator
syntax keyword cppSTLtype RandomNumberDistribution syntax keyword cppSTLconcept RandomNumberEngine
syntax keyword cppSTLtype BasicLockable syntax keyword cppSTLconcept RandomNumberEngineAdaptor
syntax keyword cppSTLtype Lockable syntax keyword cppSTLconcept RandomNumberDistribution
syntax keyword cppSTLtype TimedLockable syntax keyword cppSTLconcept BasicLockable
syntax keyword cppSTLtype Mutex syntax keyword cppSTLconcept Lockable
syntax keyword cppSTLtype TimedMutex syntax keyword cppSTLconcept TimedLockable
syntax keyword cppSTLtype SharedMutex syntax keyword cppSTLconcept Mutex
syntax keyword cppSTLtype SharedTimedMutex syntax keyword cppSTLconcept TimedMutex
syntax keyword cppSTLtype UnaryTypeTrait syntax keyword cppSTLconcept SharedMutex
syntax keyword cppSTLtype BinaryTypeTrait syntax keyword cppSTLconcept SharedTimedMutex
syntax keyword cppSTLtype TransformationTrait syntax keyword cppSTLconcept UnaryTypeTrait
syntax keyword cppSTLtype Clock syntax keyword cppSTLconcept BinaryTypeTrait
syntax keyword cppSTLtype TrivialClock syntax keyword cppSTLconcept TransformationTrait
syntax keyword cppSTLtype CharTraits syntax keyword cppSTLconcept Clock
syntax keyword cppSTLtype pos_type syntax keyword cppSTLconcept TrivialClock
syntax keyword cppSTLtype off_type syntax keyword cppSTLconcept CharTraits
syntax keyword cppSTLtype BitmaskType syntax keyword cppSTLconcept pos_type
syntax keyword cppSTLtype NumericType syntax keyword cppSTLconcept off_type
syntax keyword cppSTLtype RegexTraits syntax keyword cppSTLconcept BitmaskType
syntax keyword cppSTLtype LiteralType syntax keyword cppSTLconcept NumericType
syntax keyword cppSTLconcept RegexTraits
syntax keyword cppSTLconcept LiteralType
elseif g:cpp_concepts_highlight == 2
syntax keyword cppSTLconcept same_as
syntax keyword cppSTLconcept derived_from
syntax keyword cppSTLconcept convertible_to
syntax keyword cppSTLconcept common_reference_with
syntax keyword cppSTLconcept common_with
syntax keyword cppSTLconcept integral
syntax keyword cppSTLconcept signed_integral
syntax keyword cppSTLconcept unsigned_integral
syntax keyword cppSTLconcept assignable_from
syntax keyword cppSTLconcept swappable
syntax keyword cppSTLconcept swappable_with
syntax keyword cppSTLconcept destructible
syntax keyword cppSTLconcept constructible_from
syntax keyword cppSTLconcept default_constructible
syntax keyword cppSTLconcept move_constructible
syntax keyword cppSTLconcept copy_constructible
syntax keyword cppSTLconcept boolean
syntax keyword cppSTLconcept equality_comparable
syntax keyword cppSTLconcept equality_comparable_with
syntax keyword cppSTLconcept totally_ordered
syntax keyword cppSTLconcept totally_ordered_with
syntax keyword cppSTLconcept movable
syntax keyword cppSTLconcept copyable
syntax keyword cppSTLconcept semiregular
syntax keyword cppSTLconcept regular
syntax keyword cppSTLconcept invocable
syntax keyword cppSTLconcept regular_invocable
syntax keyword cppSTLconcept predicate
syntax keyword cppSTLconcept relation
syntax keyword cppSTLconcept strict_weak_order
syntax keyword cppSTLconcept readable
syntax keyword cppSTLconcept writable
syntax keyword cppSTLconcept weakly_incrementable
syntax keyword cppSTLconcept incrementable
syntax keyword cppSTLconcept input_or_output_iterator
syntax keyword cppSTLconcept sentinal_for
syntax keyword cppSTLconcept sized_sentinal_for
syntax keyword cppSTLconcept input_iterator
syntax keyword cppSTLconcept output_iterator
syntax keyword cppSTLconcept forward_iterator
syntax keyword cppSTLconcept bidirectional_iterator
syntax keyword cppSTLconcept random_access_iterator
syntax keyword cppSTLconcept input_iterator
syntax keyword cppSTLconcept output_iterator
syntax keyword cppSTLconcept bidirectional_iterator
syntax keyword cppSTLconcept random_access_iterator
syntax keyword cppSTLconcept contiguous_iterator
syntax keyword cppSTLconcept indirectly_unary_invocable
syntax keyword cppSTLconcept indirectly_regular_unary_invocable
syntax keyword cppSTLconcept indirect_unary_predicate
syntax keyword cppSTLconcept indirect_relation
syntax keyword cppSTLconcept indirect_strict_weak_order
syntax keyword cppSTLconcept indirectly_movable
syntax keyword cppSTLconcept indirectly_movable_storable
syntax keyword cppSTLconcept indirectly_copyable
syntax keyword cppSTLconcept indirectly_copyable_storable
syntax keyword cppSTLconcept indirectly_swappable
syntax keyword cppSTLconcept indirectly_comparable
syntax keyword cppSTLconcept permutable
syntax keyword cppSTLconcept mergeable
syntax keyword cppSTLconcept sortable
syntax keyword cppSTLconcept range
syntax keyword cppSTLconcept sized_range
syntax keyword cppSTLconcept output_range
syntax keyword cppSTLconcept input_range
syntax keyword cppSTLconcept bidirectional_range
syntax keyword cppSTLconcept random_access_range
syntax keyword cppSTLconcept contiguous_range
syntax keyword cppSTLconcept common_range
syntax keyword cppSTLconcept viewable_range
syntax keyword cppSTLconcept uniform_random_bit_generator
endif
endif " C++ concepts endif " C++ concepts
@@ -2095,6 +2286,7 @@ if version >= 508 || !exists("did_cpp_syntax_inits")
HiLink cppSTLiterator Typedef HiLink cppSTLiterator Typedef
HiLink cppSTLiterator_tag Typedef HiLink cppSTLiterator_tag Typedef
HiLink cppSTLenum Typedef HiLink cppSTLenum Typedef
HiLink cppSTLconcept Typedef
HiLink cppSTLios Function HiLink cppSTLios Function
HiLink cppSTLcast Statement " be consistent with official syntax HiLink cppSTLcast Statement " be consistent with official syntax
HiLink cppRawString String HiLink cppRawString String

View File

@@ -22,34 +22,31 @@ if exists('s:current_syntax')
let b:current_syntax = s:current_syntax let b:current_syntax = s:current_syntax
endif endif
if hlexists("jsNoise") " pangloss/vim-javascript if hlexists("jsDebugger") || hlexists("jsNoise") " yuezk/vim-js or pangloss/vim-javascript
syntax cluster jsExpression add=jsxRegion syntax cluster jsExpression add=jsxRegion
elseif hlexists("javascriptOpSymbols") " othree/yajs.vim elseif hlexists("javascriptOpSymbols") " othree/yajs.vim
" refine the javascript line comment " refine the javascript line comment
syntax region javascriptLineComment start=+//+ end=/$/ contains=@Spell,javascriptCommentTodo extend keepend syntax region javascriptLineComment start=+//+ end=/$/ contains=@Spell,javascriptCommentTodo extend keepend
syntax cluster javascriptValue add=jsxRegion syntax cluster javascriptValue add=jsxRegion
syntax cluster javascriptNoReserved add=jsxElement,jsxTag syntax cluster javascriptNoReserved add=jsxElement,jsxTag
" add support to arrow function which returns a tagged template string, e.g.
" () => html`<div></div>`
syntax cluster afterArrowFunc add=javascriptTagRef
else " build-in javascript syntax else " build-in javascript syntax
" refine the javascript line comment " refine the javascript line comment
syntax region javaScriptLineComment start=+//+ end=/$/ contains=@Spell,javascriptCommentTodo extend keepend syntax region javaScriptLineComment start=+//+ end=/$/ contains=@Spell,javascriptCommentTodo extend keepend
" refine the template string syntax
syntax region javaScriptEmbed matchgroup=javaScriptEmbedBraces start=+\${+ end=+}+ contained contains=@javaScriptEmbededExpr
" add a javaScriptBlock group for build-in syntax " add a javaScriptBlock group for build-in syntax
syntax region javaScriptBlockBuildIn syntax region javaScriptBlock
\ contained
\ matchgroup=javaScriptBraces \ matchgroup=javaScriptBraces
\ start="{" \ start="{"
\ end="}" \ end="}"
\ contained
\ extend \ extend
\ contains=javaScriptBlockBuildIn,@javaScriptEmbededExpr,javaScript.* \ contains=javaScriptBlock,@javaScriptEmbededExpr,javaScript.*
\ fold \ fold
syntax cluster javaScriptEmbededExpr add=jsxRegion
" refine the template string syntax syntax cluster javaScriptEmbededExpr add=jsxRegion,javaScript.*
syntax region javaScriptStringT start=+`+ skip=+\\\\\|\\`+ end=+`+ contains=javaScriptSpecial,javaScriptEmbed,@htmlPreproc extend
syntax region javaScriptEmbed matchgroup=javaScriptEmbedBraces start=+\${+ end=+}+ contained contains=@javaScriptEmbededExpr,javaScript.*
endif endif
runtime syntax/jsx_pretty.vim runtime syntax/jsx_pretty.vim

View File

@@ -2,6 +2,12 @@ if !exists('g:polyglot_disabled') || !(index(g:polyglot_disabled, 'typescript')
let s:highlight_close_tag = get(g:, 'vim_jsx_pretty_highlight_close_tag', 0) let s:highlight_close_tag = get(g:, 'vim_jsx_pretty_highlight_close_tag', 0)
" detect jsx region
syntax region jsxRegion
\ start=+\%(\%(\_[([,?:=+\-*/>{}]\|<\s\+\|&&\|||\|=>\|\<return\|\<default\|\<await\|\<yield\)\_s*\)\@<=<\_s*\%(>\|\z(\%(script\|T\s*>\s*(\)\@!\<[_$A-Za-z][-:._$A-Za-z0-9]*\>\)\%(\_s*\%([-+*)\]}&|?,]\|/\%([/*]\|\_s*>\)\@!\)\)\@!\)+
\ end=++
\ contains=jsxElement
" <tag id="sample"> " <tag id="sample">
" ~~~~~~~~~~~~~~~~~ " ~~~~~~~~~~~~~~~~~
" and self close tag " and self close tag
@@ -12,11 +18,14 @@ syntax region jsxTag
\ matchgroup=jsxOpenPunct \ matchgroup=jsxOpenPunct
\ end=+>+ \ end=+>+
\ matchgroup=NONE \ matchgroup=NONE
\ end=+\(/\_s*>\)\@=+ \ end=+\%(/\_s*>\)\@=+
\ contained \ contained
\ contains=jsxOpenTag,jsxEscapeJs,jsxAttrib,jsComment,@javascriptComments,javaScriptLineComment,javaScriptComment,typescriptLineComment,typescriptComment,jsxSpreadOperator \ contains=jsxOpenTag,jsxAttrib,jsxEscapeJs,jsxSpreadOperator,jsComment,@javascriptComments,javaScriptLineComment,javaScriptComment,typescriptLineComment,typescriptComment
\ keepend \ keepend
\ extend \ extend
\ skipwhite
\ skipempty
\ nextgroup=jsxCloseString
" <tag></tag> " <tag></tag>
" ~~~~~~~~~~~ " ~~~~~~~~~~~
@@ -27,30 +36,15 @@ syntax region jsxTag
" <tag /> " <tag />
" ~~~~~~~ " ~~~~~~~
syntax region jsxElement syntax region jsxElement
\ start=+<\_s*\(>\|\${\|\z(\<[-:_\.\$0-9A-Za-z]\+\>\)\)+ \ start=+<\_s*\%(>\|\${\|\z(\<[-:._$A-Za-z0-9]\+\>\)\)+
\ end=+/\_s*>+ \ end=+/\_s*>+
\ end=+<\_s*/\_s*\z1\_s*>+ \ end=+<\_s*/\_s*\z1\_s*>+
\ contains=jsxElement,jsxEscapeJs,jsxTag,jsxComment,jsxCloseString,jsxCloseTag,@Spell \ contains=jsxElement,jsxTag,jsxEscapeJs,jsxComment,jsxCloseTag,@Spell
\ keepend \ keepend
\ extend \ extend
\ contained \ contained
\ fold \ fold
" detect jsx region
syntax region jsxRegion
\ start=+\(\(\_[([,?:=+\-*/<>{}]\|&&\|||\|=>\|\<return\|\<default\|\<await\|\<yield\)\_s*\)\@<=<\_s*\(>\|\z(\(script\)\@!\<[_\$A-Za-z][-:_\.\$0-9A-Za-z]*\>\)\(\_s*\([-+*)\]}&|?]\|/\([/*]\|\_s*>\)\@!\)\)\@!\)+
\ end=++
\ contains=jsxElement
" <tag key={this.props.key}>
" ~~~~~~~~~~~~~~~~
syntax region jsxEscapeJs
\ start=+{+
\ end=++
\ extend
\ contained
\ contains=jsBlock,javascriptBlock,javaScriptBlockBuildIn,typescriptBlock
" <tag key={this.props.key}> " <tag key={this.props.key}>
" ~~~~ " ~~~~
" and fragment start tag " and fragment start tag
@@ -66,19 +60,31 @@ exe 'syntax region jsxOpenTag
\ contains=jsxTagName \ contains=jsxTagName
\ nextgroup=jsxAttrib \ nextgroup=jsxAttrib
\ skipwhite \ skipwhite
\ skipempty ' .(s:highlight_close_tag ? 'transparent' : '') \ skipempty
\ ' .(s:highlight_close_tag ? 'transparent' : '')
" <tag key={this.props.key}>
" ~~~~~~~~~~~~~~~~
syntax region jsxEscapeJs
\ matchgroup=jsxBraces
\ start=+{+
\ end=+}+
\ contained
\ extend
\ contains=@jsExpression,jsSpreadExpression,@javascriptExpression,javascriptSpreadOp,@javaScriptEmbededExpr,@typescriptExpression,typescriptObjectSpread
" <foo.bar> " <foo.bar>
" ~ " ~
syntax match jsxDot +\.+ contained display syntax match jsxDot +\.+ contained
" <foo:bar> " <foo:bar>
" ~ " ~
syntax match jsxNamespace +:+ contained display syntax match jsxNamespace +:+ contained
" <tag id="sample"> " <tag id="sample">
" ~ " ~
syntax match jsxEqual +=+ contained display nextgroup=jsxString,jsxEscapeJs,jsxRegion skipwhite syntax match jsxEqual +=+ contained skipwhite skipempty nextgroup=jsxString,jsxEscapeJs,jsxRegion
" <tag /> " <tag />
" ~~ " ~~
@@ -99,13 +105,12 @@ syntax region jsxCloseTag
" <tag key={this.props.key}> " <tag key={this.props.key}>
" ~~~ " ~~~
syntax match jsxAttrib syntax match jsxAttrib
\ +\<[-A-Za-z_][-:_\$0-9A-Za-z]*\>+ \ +\<[_$A-Za-z][-:_$A-Za-z0-9]*\>+
\ contained \ contained
\ nextgroup=jsxEqual \ nextgroup=jsxEqual
\ skipwhite \ skipwhite
\ skipempty \ skipempty
\ contains=jsxAttribKeyword \ contains=jsxAttribKeyword,jsxNamespace
\ display
" <MyComponent ...> " <MyComponent ...>
" ~~~~~~~~~~~ " ~~~~~~~~~~~
@@ -113,67 +118,71 @@ syntax match jsxAttrib
" <someCamel ...> " <someCamel ...>
" ~~~~~ " ~~~~~
exe 'syntax match jsxComponentName exe 'syntax match jsxComponentName
\ +\<[A-Z][\$0-9A-Za-z]\+\>+ \ +\<[_$]\?[A-Z][-_$A-Za-z0-9]*\>+
\ contained \ contained
\ display ' .(s:highlight_close_tag ? 'transparent' : '') \ ' .(s:highlight_close_tag ? 'transparent' : '')
" <tag key={this.props.key}> " <tag key={this.props.key}>
" ~~~ " ~~~
exe 'syntax match jsxTagName exe 'syntax match jsxTagName
\ +\<[-:_\.\$0-9A-Za-z]\+\>+ \ +\<[-:._$A-Za-z0-9]\+\>+
\ contained \ contained
\ contains=jsxComponentName,jsxDot,jsxNamespace \ contains=jsxComponentName,jsxDot,jsxNamespace
\ nextgroup=jsxAttrib \ nextgroup=jsxAttrib
\ skipempty \ skipempty
\ skipwhite \ skipwhite
\ display ' .(s:highlight_close_tag ? 'transparent' : '') \ ' .(s:highlight_close_tag ? 'transparent' : '')
" <tag id="sample"> " <tag id="sample">
" ~~~~~~~~ " ~~~~~~~~
" and " and
" <tag id='sample'> " <tag id='sample'>
" ~~~~~~~~ " ~~~~~~~~
syntax region jsxString start=+\z(["']\)+ skip=+\\\%(\z1\|$\)+ end=+\z1+ contained contains=@Spell display syntax region jsxString start=+\z(["']\)+ skip=+\\\\\|\\\z1\|\\\n+ end=+\z1+ contained contains=@Spell
let s:tags = get(g:, 'vim_jsx_pretty_template_tags', ['html', 'raw']) let s:tags = get(g:, 'vim_jsx_pretty_template_tags', ['html', 'jsx'])
let s:enable_tagged_jsx = !empty(s:tags) let s:enable_tagged_jsx = !empty(s:tags)
" add support to JSX inside the tagged template string " add support to JSX inside the tagged template string
" https://github.com/developit/htm " https://github.com/developit/htm
if s:enable_tagged_jsx if s:enable_tagged_jsx
exe 'syntax region jsxTaggedRegion exe 'syntax match jsxRegion +\%(' . join(s:tags, '\|') . '\)\%(\_s*`\)\@=+ contains=jsTemplateStringTag,jsTaggedTemplate,javascriptTagRef skipwhite skipempty nextgroup=jsxTaggedRegion'
\ start=+\%('. join(s:tags, '\|') .'\)\@<=`+ms=s+1
\ end=+`+me=e-1 syntax region jsxTaggedRegion
\ matchgroup=jsxBackticks
\ start=+`+
\ end=+`+
\ extend \ extend
\ contained \ contained
\ containedin=jsTemplateString,javascriptTemplate,javaScriptStringT,typescriptStringB \ contains=jsxElement,jsxEscapeJs
\ contains=jsxElement' \ transparent
syntax region jsxEscapeJs syntax region jsxEscapeJs
\ matchgroup=jsxBraces
\ start=+\${+ \ start=+\${+
\ end=++ \ end=+}+
\ extend \ extend
\ contained \ contained
\ contains=jsTemplateExpression,javascriptTemplateSubstitution,javaScriptEmbed,typescriptInterpolation \ contains=@jsExpression,jsSpreadExpression,@javascriptExpression,javascriptSpreadOp,@javaScriptEmbededExpr,@typescriptExpression,typescriptObjectSpread
syntax region jsxOpenTag syntax region jsxOpenTag
\ matchgroup=jsxOpenPunct \ matchgroup=jsxOpenPunct
\ start=+<\%(\${\)\@=+ \ start=+<\%(\${\)\@=+
\ matchgroup=NONE \ matchgroup=NONE
\ end=++ \ end=+}\@1<=+
\ contained \ contained
\ contains=jsxEscapeJs \ contains=jsxEscapeJs
\ nextgroup=jsxAttrib,jsxSpreadOperator
\ skipwhite \ skipwhite
\ skipempty \ skipempty
\ nextgroup=jsxAttrib,jsxSpreadOperator
syntax keyword jsxAttribKeyword class contained display syntax keyword jsxAttribKeyword class contained
syntax match jsxSpreadOperator +\.\.\.+ contained display nextgroup=jsxEscapeJs skipwhite syntax match jsxSpreadOperator +\.\.\.+ contained nextgroup=jsxEscapeJs skipwhite
syntax match jsxCloseTag +<//>+ display syntax match jsxCloseTag +<//>+ contained
syntax match jsxComment +<!--\_.\{-}-->+ display syntax match jsxComment +<!--\_.\{-}-->+
endif endif
" Highlight the tag name " Highlight the tag name
@@ -183,10 +192,14 @@ highlight def link jsxComponentName Function
highlight def link jsxAttrib Type highlight def link jsxAttrib Type
highlight def link jsxAttribKeyword jsxAttrib highlight def link jsxAttribKeyword jsxAttrib
highlight def link jsxEqual Operator
highlight def link jsxString String highlight def link jsxString String
highlight def link jsxComment Comment
highlight def link jsxDot Operator highlight def link jsxDot Operator
highlight def link jsxNamespace Operator highlight def link jsxNamespace Operator
highlight def link jsxEqual Operator
highlight def link jsxSpreadOperator Operator
highlight def link jsxBraces Special
if s:highlight_close_tag if s:highlight_close_tag
highlight def link jsxCloseString Identifier highlight def link jsxCloseString Identifier
@@ -201,9 +214,6 @@ highlight def link jsxPunct jsxCloseString
highlight def link jsxClosePunct jsxPunct highlight def link jsxClosePunct jsxPunct
highlight def link jsxCloseTag jsxCloseString highlight def link jsxCloseTag jsxCloseString
highlight def link jsxComment Comment
highlight def link jsxSpreadOperator Operator
let s:vim_jsx_pretty_colorful_config = get(g:, 'vim_jsx_pretty_colorful_config', 0) let s:vim_jsx_pretty_colorful_config = get(g:, 'vim_jsx_pretty_colorful_config', 0)
if s:vim_jsx_pretty_colorful_config == 1 if s:vim_jsx_pretty_colorful_config == 1
@@ -212,5 +222,4 @@ if s:vim_jsx_pretty_colorful_config == 1
highlight def link jsFuncArgs Type highlight def link jsFuncArgs Type
endif endif
endif endif

View File

@@ -9,6 +9,10 @@ if !exists('g:polyglot_disabled') || !(index(g:polyglot_disabled, 'typescript')
" "
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
if get(g:, 'vim_jsx_pretty_disable_tsx', 0)
finish
endif
let s:jsx_cpo = &cpo let s:jsx_cpo = &cpo
set cpo&vim set cpo&vim

View File

@@ -77,10 +77,17 @@ function! crystal_lang#entrypoint_for(file_path) abort
return a:file_path return a:file_path
endif endif
let required_spec_path = get(b:, 'crystal_required_spec_path', get(g:, 'crystal_required_spec_path', ''))
if required_spec_path !=# ''
let require_spec_str = './' . required_spec_path
else
let require_spec_str = './spec/**'
endif
let temp_name = root_dir . '/__vim-crystal-temporary-entrypoint-' . fnamemodify(a:file_path, ':t') let temp_name = root_dir . '/__vim-crystal-temporary-entrypoint-' . fnamemodify(a:file_path, ':t')
let contents = [ let contents = [
\ 'require "spec"', \ 'require "spec"',
\ 'require "./spec/**"', \ 'require "' . require_spec_str . '"',
\ printf('require "./%s"', fnamemodify(a:file_path, ':p')[strlen(root_dir)+1 : ]) \ printf('require "./%s"', fnamemodify(a:file_path, ':p')[strlen(root_dir)+1 : ])
\ ] \ ]

View File

@@ -28,61 +28,56 @@ function! s:clearQfList(reason) abort
endfunction endfunction
function! dart#fmt(q_args) abort function! dart#fmt(q_args) abort
if executable('dartfmt') let cmd = s:FindDartFmt()
let buffer_content = join(getline(1, '$'), "\n") if type(cmd) != type('') | return | endif
let args = '--stdin-name '.expand('%').' '.a:q_args let buffer_content = getline(1, '$')
let joined_lines = system(printf('dartfmt %s', args), buffer_content) let args = '--stdin-name '.expand('%').' '.a:q_args
if buffer_content ==# joined_lines[:-2] let lines = systemlist(printf('%s %s', cmd, args), join(buffer_content, "\n"))
call s:clearQfList('dartfmt') " TODO(https://github.com/dart-lang/sdk/issues/38507) - Remove once the
return " tool no longer emits this line on SDK upgrades.
endif if lines[-1] ==# 'Isolate creation failed'
if 0 == v:shell_error let lines = lines[:-2]
let win_view = winsaveview()
let lines = split(joined_lines, "\n")
silent keepjumps call setline(1, lines)
if line('$') > len(lines)
silent keepjumps execute string(len(lines)+1).',$ delete'
endif
call winrestview(win_view)
call s:clearQfList('dartfmt')
else
let errors = split(joined_lines, "\n")[2:]
let error_format = '%Aline %l\, column %c of %f: %m,%C%.%#'
call s:cexpr(error_format, errors, 'dartfmt')
endif
else
call s:error('cannot execute binary file: dartfmt')
endif endif
if buffer_content == lines
call s:clearQfList('dartfmt')
return
endif
if 0 == v:shell_error
let win_view = winsaveview()
silent keepjumps call setline(1, lines)
if line('$') > len(lines)
silent keepjumps execute string(len(lines)+1).',$ delete'
endif
call winrestview(win_view)
call s:clearQfList('dartfmt')
else
let errors = lines[2:]
let error_format = '%Aline %l\, column %c of %f: %m,%C%.%#'
call s:cexpr(error_format, errors, 'dartfmt')
endif
endfunction
function! s:FindDartFmt() abort
if executable('dartfmt') | return 'dartfmt' | endif
if executable('flutter')
let l:flutter_cmd = resolve(exepath('flutter'))
let l:bin = fnamemodify(l:flutter_cmd, ':h')
let l:dartfmt = l:bin.'/cache/dart-sdk/bin/dartfmt'
if executable(l:dartfmt) | return l:dartfmt | endif
endif
call s:error('Cannot find a `dartfmt` command')
endfunction endfunction
function! dart#analyzer(q_args) abort function! dart#analyzer(q_args) abort
if executable('dartanalyzer') call s:error('DartAnalyzer support has been removed. '.
let path = expand('%:p:gs:\:/:') \'If this broke your workflow please comment on '.
if filereadable(path) \'https://github.com/dart-lang/dart-vim-plugin/issues/89')
let command = printf('dartanalyzer %s %s', a:q_args, shellescape(path))
let lines = systemlist(command)
call s:cexpr('%m (%f\, line %l\, col %c)', lines, 'dartanalyzer')
else
call s:error(printf('cannot read a file: "%s"', path))
endif
else
call s:error('cannot execute binary file: dartanalyzer')
endif
endfunction endfunction
function! dart#tojs(q_args) abort function! dart#tojs(q_args) abort
if executable('dart2js') call s:error('Dart2JS support has been removed. '.
let path = expand('%:p:gs:\:/:') \'If this broke your workflow please comment on '.
if filereadable(path) \'https://github.com/dart-lang/dart-vim-plugin/issues/89')
let command = printf('dart2js %s %s', a:q_args, shellescape(path))
let lines = systemlist(command)
call s:cexpr('%m (%f\, line %l\, col %c)', lines, 'dart2js')
else
call s:error(printf('cannot read a file: "%s"', path))
endif
else
call s:error('cannot execute binary file: dartanalyzer')
endif
endfunction endfunction
" Finds the path to `uri`. " Finds the path to `uri`.

View File

@@ -207,9 +207,10 @@ endfunction
function! go#config#DebugWindows() abort function! go#config#DebugWindows() abort
return get(g:, 'go_debug_windows', { return get(g:, 'go_debug_windows', {
\ 'stack': 'leftabove 20vnew',
\ 'out': 'botright 10new',
\ 'vars': 'leftabove 30vnew', \ 'vars': 'leftabove 30vnew',
\ 'stack': 'leftabove 20new',
\ 'goroutines': 'botright 10new',
\ 'out': 'botright 5new',
\ } \ }
\ ) \ )
@@ -367,6 +368,11 @@ function! go#config#PlayOpenBrowser() abort
return get(g:, "go_play_open_browser", 1) return get(g:, "go_play_open_browser", 1)
endfunction endfunction
function! go#config#GorenameCommand() abort
" delegate to go#config#GorenameBin for backwards compatability.
return get(g:, "go_gorename_command", go#config#GorenameBin())
endfunction
function! go#config#GorenameBin() abort function! go#config#GorenameBin() abort
return get(g:, "go_gorename_bin", "gorename") return get(g:, "go_gorename_bin", "gorename")
endfunction endfunction
@@ -462,6 +468,14 @@ function! go#config#HighlightVariableDeclarations() abort
return get(g:, 'go_highlight_variable_declarations', 0) return get(g:, 'go_highlight_variable_declarations', 0)
endfunction endfunction
function! go#config#HighlightDiagnosticErrors() abort
return get(g:, 'go_highlight_diagnostic_errors', 1)
endfunction
function! go#config#HighlightDiagnosticWarnings() abort
return get(g:, 'go_highlight_diagnostic_warnings', 1)
endfunction
function! go#config#HighlightDebug() abort function! go#config#HighlightDebug() abort
return get(g:, 'go_highlight_debug', 1) return get(g:, 'go_highlight_debug', 1)
endfunction endfunction
@@ -481,6 +495,31 @@ function! go#config#CodeCompletionEnabled() abort
return get(g:, "go_code_completion_enabled", 1) return get(g:, "go_code_completion_enabled", 1)
endfunction endfunction
function! go#config#Updatetime() abort
let go_updatetime = get(g:, 'go_updatetime', 800)
return go_updatetime == 0 ? &updatetime : go_updatetime
endfunction
function! go#config#ReferrersMode() abort
return get(g:, 'go_referrers_mode', 'gopls')
endfunction
function! go#config#GoplsCompleteUnimported() abort
return get(g:, 'go_gopls_complete_unimported', 0)
endfunction
function! go#config#GoplsDeepCompletion() abort
return get(g:, 'go_gopls_deep_completion', 1)
endfunction
function! go#config#GoplsFuzzyMatching() abort
return get(g:, 'go_gopls_fuzzy_matching', 1)
endfunction
function! go#config#GoplsUsePlaceholders() abort
return get(g:, 'go_gopls_use_placeholders', 0)
endfunction
" Set the default value. A value of "1" is a shortcut for this, for " Set the default value. A value of "1" is a shortcut for this, for
" compatibility reasons. " compatibility reasons.
if exists("g:go_gorename_prefill") && g:go_gorename_prefill == 1 if exists("g:go_gorename_prefill") && g:go_gorename_prefill == 1

View File

@@ -3,7 +3,7 @@ if !exists('g:polyglot_disabled') || !(index(g:polyglot_disabled, 'typescript')
function! jsx_pretty#comment#update_commentstring(original) function! jsx_pretty#comment#update_commentstring(original)
let syn_current = s:syn_name(line('.'), col('.')) let syn_current = s:syn_name(line('.'), col('.'))
let syn_start = s:syn_name(line('.'), 1) let syn_start = s:syn_name(line('.'), 1)
let save_view = winsaveview() let save_cursor = getcurpos()
if syn_start =~? '^jsx' if syn_start =~? '^jsx'
let line = getline(".") let line = getline(".")
@@ -24,7 +24,7 @@ function! jsx_pretty#comment#update_commentstring(original)
endif endif
" Restore the cursor position " Restore the cursor position
call winrestview(save_view) call setpos('.', save_cursor)
endfunction endfunction
function! s:syn_name(lnum, cnum) function! s:syn_name(lnum, cnum)

View File

@@ -10,209 +10,297 @@ else
endfunction endfunction
endif endif
" Get the syntax group of start of line " Regexp for the start tag
function! s:syn_sol(lnum) let s:start_tag = '<\_s*\%(>\|\${\|\%(\<[-:._$A-Za-z0-9]\+\>\)\)'
let line = getline(a:lnum) " Regexp for the end tag
let sol = matchstr(line, '^\s*') let s:end_tag = '\%(<\_s*/\_s*\%(\<[-:._$A-Za-z0-9]\+\>\)\_s*>\|/\_s*>\)'
return map(synstack(a:lnum, len(sol) + 1), 'synIDattr(v:val, "name")')
function s:trim(line)
return substitute(a:line, '^\s*\|\s*$', '', 'g')
endfunction endfunction
" Get the syntax group of end of line " Get the syntax stack at the given position
function! s:syn_eol(lnum) function s:syntax_stack_at(lnum, col)
let lnum = prevnonblank(a:lnum) return map(synstack(a:lnum, a:col), 'synIDattr(v:val, "name")')
let col = strlen(getline(lnum))
return map(synstack(lnum, col), 'synIDattr(v:val, "name")')
endfunction endfunction
function! s:prev_indent(lnum) " Get the syntax at the given position
let lnum = prevnonblank(a:lnum - 1) function s:syntax_at(lnum, col)
return indent(lnum) return synIDattr(synID(a:lnum, a:col, 1), 'name')
endfunction endfunction
function! s:prev_line(lnum) " Get the start col of the non-space charactor
let lnum = prevnonblank(a:lnum - 1) function s:start_col(lnum)
return substitute(getline(lnum), '^\s*\|\s*$', '', 'g') return len(matchstr(getline(a:lnum), '^\s*')) + 1
endfunction endfunction
function! s:syn_attr_jsx(synattr) " Get the start syntax of a given line number
return a:synattr =~? "^jsx" function s:start_syntax(lnum)
return s:syntax_at(a:lnum, s:start_col(a:lnum))
endfunction endfunction
function! s:syn_xmlish(syns) " The skip function for searchpair
return s:syn_attr_jsx(get(a:syns, -1)) function s:skip_if_not(current_lnum, ...)
" Skip the match in current line
if line('.') == a:current_lnum
return 1
endif
let syntax = s:syntax_at(line('.'), col('.'))
return syntax !~? join(a:000, '\|')
endfunction endfunction
function! s:syn_jsx_element(syns) " Whether the specified stytax group is the opening tag
return get(a:syns, -1) =~? 'jsxElement' function s:is_opening_tag(syntax)
return a:syntax =~? 'jsxOpenPunct'
endfunction endfunction
function! s:syn_js_comment(syns) " Whether the specified stytax group is the closing tag
return get(a:syns, -1) =~? 'Comment$' function s:is_closing_tag(syntax)
return a:syntax =~? 'jsxClose'
endfunction endfunction
function! s:syn_jsx_escapejs(syns) " Whether the specified syntax group is the jsxRegion
return get(a:syns, -1) =~? '\(\(js\(Template\)\?\|javaScript\(Embed\)\?\|typescript\)Braces\|javascriptTemplateSB\|typescriptInterpolationDelimiter\)' && function s:is_jsx_region(syntax)
\ (get(a:syns, -2) =~? 'jsxEscapeJs' || return a:syntax =~? 'jsxRegion'
\ get(a:syns, -3) =~? 'jsxEscapeJs')
endfunction endfunction
function! s:syn_jsx_attrib(syns) " Whether the specified syntax group is the jsxElement
return len(filter(copy(a:syns), 'v:val =~? "jsxAttrib"')) function s:is_jsx_element(syntax)
return a:syntax =~? 'jsxElement'
endfunction
" Whether the specified syntax group is the jsxEscapeJs
function s:is_jsx_escape(syntax)
return a:syntax =~? 'jsxEscapeJs'
endfunction
" Whether the specified syntax group is the jsxBraces
function s:is_jsx_brace(syntax)
return a:syntax =~? 'jsxBraces'
endfunction
" Whether the specified syntax group is the jsxComment
function s:is_jsx_comment(syntax)
return a:syntax =~? 'jsxComment'
endfunction
" Whether the specified line is comment related syntax
function s:is_comment(syntax)
return a:syntax =~? 'comment'
endfunction
" Whether the specified syntax group is the jsxComment
function s:is_jsx_backticks(syntax)
return a:syntax =~? 'jsxBackticks'
endfunction
" Get the prvious line number
function s:prev_lnum(lnum)
return prevnonblank(a:lnum - 1)
endfunction
" Whether the given pos is the parent of the given element who has
" element_count jsxElement syntax
function s:is_parent_element(pos, element_count)
let syntax_stack = s:syntax_stack_at(a:pos[0], a:pos[1])
return s:is_opening_tag(syntax_stack[-1]) &&
\ count(syntax_stack, 'jsxElement') <= a:element_count
endfunction
" Compute the indention of the trail punct
function s:jsx_indent_trail_punct(lnum)
let pair_line = searchpair('<', '', '>', 'bW', 's:skip_if_not(a:lnum, "jsxOpenPunct", "jsxClose")')
return indent(pair_line)
endfunction
" Compute the indention of the closing tag
function s:jsx_indent_closing_tag(lnum)
let pair_line = searchpair(s:start_tag, '', s:end_tag, 'bW', 's:skip_if_not(a:lnum, "jsxOpenPunct", "jsxClose")')
return pair_line ? indent(pair_line) : indent(a:lnum)
endfunction
" Compute the indentation of the jsxElement
function s:jsx_indent_element(lnum)
let syntax_stack = s:syntax_stack_at(a:lnum, s:start_col(a:lnum))
let syntax_name = syntax_stack[-1]
let element_count = count(syntax_stack, 'jsxElement')
if s:trim(getline(a:lnum)) =~ '^>'
return s:jsx_indent_trail_punct(a:lnum)
endif
" If current tag is closing tag
if s:is_closing_tag(syntax_name)
return s:jsx_indent_closing_tag(a:lnum)
endif
" Normalize the jsxElement count for opening tag
if s:is_opening_tag(syntax_name)
" <div>
" <div></div> <-- jsxRegion->jsxElement->jsxElement->jsxTag->jsxOpenTag->jsxOpenPunct
" </div>
if s:is_jsx_element(syntax_stack[-4]) && s:is_jsx_element(syntax_stack[-5])
let element_count = element_count - 1
endif
endif
let start_time = localtime()
let pos = searchpos(s:start_tag, 'bW')
while !s:is_parent_element(pos, element_count)
if localtime() - start_time >= 0.5
return -1
endif
let pos = searchpos(s:start_tag, 'bW')
endwhile
return indent(pos[0]) + s:sw()
endfunction
" Compute the indentation of the comment
function s:jsx_indent_comment(lnum)
let line = s:trim(getline(a:lnum))
if s:is_jsx_comment(s:start_syntax(a:lnum))
if line =~ '^<!--' || line =~ '^-->'
return s:jsx_indent_element(a:lnum)
else
return s:jsx_indent_element(a:lnum) + s:sw()
endif
else
if line =~ '^/\*' || line =~ '^//'
return s:jsx_indent_element(a:lnum)
else
return s:jsx_indent_element(a:lnum) + 1
endif
endif
endfunction
" Compute the indentation of jsxBackticks
function s:jsx_indent_backticks(lnum)
let tags = get(g:, 'vim_jsx_pretty_template_tags', ['html', 'jsx'])
let start_tag = '\%(' . join(tags, '\|') . '\)`'
let end_tag = '\%(' . join(tags, '\|') . '\)\@<!`'
let pair_line = searchpair(start_tag, '', end_tag, 'bW', 's:skip_if_not(a:lnum)')
return indent(pair_line)
endfunction
" Syntax context types:
" - jsxRegion
" - jsxTaggedRegion
" - jsxElement
" - jsxEscapeJs
" - Other
function s:syntax_context(lnum)
let start_col = s:start_col(a:lnum)
let syntax_stack = s:syntax_stack_at(a:lnum, start_col)
let start_syntax = syntax_stack[-1]
let reversed = reverse(syntax_stack)
let i = 0
for syntax_name in reversed
" If the current line is jsxEscapeJs and not starts with jsxBraces
if s:is_jsx_escape(syntax_name)
return 'jsxEscapeJs'
endif
if s:is_jsx_region(syntax_name)
return 'jsxRegion'
endif
if s:is_jsx_element(syntax_name)
" If current line starts with the opening tag
if s:is_opening_tag(start_syntax) || s:is_closing_tag(start_syntax)
" And the next syntax is jsxRegion
if s:is_jsx_region(reversed[i+1])
return 'jsxRegion'
elseif reversed[i+1] =~ 'jsxTaggedRegion'
return 'jsxTaggedRegion'
else
return 'jsxElement'
endif
elseif reversed[i+1] =~ 'jsxTaggedRegion'
return 'jsxTaggedRegion'
else
return 'jsxElement'
endif
endif
let i = i + 1
endfor
return 'Other'
endfunction endfunction
let s:start_tag = '<\s*\([-:_\.\$0-9A-Za-z]\+\|>\)'
" match `/end_tag>` and `//>`
let s:end_tag = '/\%(\s*[-:_\.\$0-9A-Za-z]*\s*\|/\)>'
let s:opfirst = '^' . get(g:,'javascript_opfirst',
\ '\C\%([<>=,.?^%|/&]\|\([-:+]\)\1\@!\|\*\+\|!=\|in\%(stanceof\)\=\>\)')
function! jsx_pretty#indent#get(js_indent) function! jsx_pretty#indent#get(js_indent)
let lnum = v:lnum let line = s:trim(getline(v:lnum))
let line = substitute(getline(lnum), '^\s*\|\s*$', '', 'g') let start_syntax = s:start_syntax(v:lnum)
let current_syn = s:syn_sol(lnum)
let current_syn_eol = s:syn_eol(lnum)
let prev_line_num = prevnonblank(lnum - 1)
let prev_syn_sol = s:syn_sol(prev_line_num)
let prev_syn_eol = s:syn_eol(prev_line_num)
let prev_line = s:prev_line(lnum)
let prev_ind = s:prev_indent(lnum)
if s:syn_xmlish(current_syn) if s:is_jsx_backticks(start_syntax)
return s:jsx_indent_backticks(v:lnum)
endif
if !s:syn_xmlish(prev_syn_sol) if s:is_jsx_brace(start_syntax)
\ && !s:syn_jsx_escapejs(prev_syn_sol) return s:jsx_indent_element(v:lnum)
\ && !s:syn_jsx_escapejs(prev_syn_eol) endif
\ && !s:syn_js_comment(prev_syn_sol)
if line =~ '^/\s*>' || line =~ '^<\s*' . s:end_tag if s:is_opening_tag(start_syntax) && line =~ '^>'
return prev_ind return s:jsx_indent_trail_punct(v:lnum)
else endif
return prev_ind + s:sw()
endif let syntax_context = s:syntax_context(v:lnum)
elseif !s:syn_xmlish(prev_syn_sol) && !s:syn_js_comment(prev_syn_sol) && s:syn_jsx_attrib(current_syn)
" For #79 if syntax_context == 'jsxRegion'
return prev_ind + s:sw() if s:is_closing_tag(start_syntax)
" { return s:jsx_indent_closing_tag(v:lnum)
" <div></div> endif
" ##} <--
elseif s:syn_jsx_element(current_syn) && line =~ '}$' let prev_lnum = s:prev_lnum(v:lnum)
let pair_line = searchpair('{', '', '}', 'b') let prev_line = s:trim(getline(prev_lnum))
return indent(pair_line)
elseif line =~ '^-->$' if prev_line =~ '[([{=?]$'
if prev_line =~ '^<!--' return indent(prev_lnum) + s:sw()
return prev_ind elseif prev_line =~ '[:|&<>]$' &&
else \ s:trim(getline(s:prev_lnum(prev_lnum))) !~ '[?:|&<>]$'
return prev_ind - s:sw() return indent(prev_lnum) + s:sw()
endif
elseif prev_line =~ '-->$'
return prev_ind
" close tag </tag> or /> including </>
elseif prev_line =~ s:end_tag . '$'
if line =~ '^<\s*' . s:end_tag
return prev_ind - s:sw()
elseif s:syn_jsx_attrib(prev_syn_sol)
return prev_ind - s:sw()
else
return prev_ind
endif
elseif line =~ '^\(>\|/\s*>\)'
if prev_line =~ '^<'
return prev_ind
else
return prev_ind - s:sw()
endif
elseif prev_line =~ '^\(<\|>\)' &&
\ (s:syn_xmlish(prev_syn_eol) || s:syn_js_comment(prev_syn_eol))
if line =~ '^<\s*' . s:end_tag
return prev_ind
else
return prev_ind + s:sw()
endif
elseif line =~ '^<\s*' . s:end_tag
if !s:syn_xmlish(prev_syn_sol)
if s:syn_jsx_escapejs(prev_syn_eol)
\ || s:syn_jsx_escapejs(prev_syn_sol)
return prev_ind - s:sw()
else
return prev_ind
endif
elseif prev_line =~ '^\<return'
return prev_ind
else
return prev_ind - s:sw()
endif
elseif !s:syn_xmlish(prev_syn_eol)
if prev_line =~ '\(&&\|||\|=>\|[([{]\|`\)$'
" <div>
" {
" }
" </div>
if line =~ '^[)\]}]'
return prev_ind
else
return prev_ind + s:sw()
endif
else
return prev_ind
endif
else else
return prev_ind return indent(prev_lnum)
endif endif
elseif s:syn_jsx_escapejs(current_syn) elseif syntax_context == 'jsxTaggedRegion'
if line =~ '^}' if s:is_closing_tag(start_syntax)
let char = getline('.')[col('.') - 1] return s:jsx_indent_closing_tag(v:lnum)
" When pressing enter after the }, keep the indent elseif s:is_jsx_comment(start_syntax)
if char != '}' && search('}', 'b', lnum) return s:jsx_indent_comment(v:lnum)
return indent(lnum) else
else return indent(s:prev_lnum(v:lnum)) + s:sw()
let pair_line = searchpair('{', '', '}', 'bW')
return indent(pair_line)
endif
elseif line =~ '^{' || line =~ '^\${'
if s:syn_jsx_escapejs(prev_syn_eol)
\ || s:syn_jsx_attrib(prev_syn_sol)
return prev_ind
elseif s:syn_xmlish(prev_syn_eol) && (prev_line =~ s:end_tag || prev_line =~ '-->$')
return prev_ind
else
return prev_ind + s:sw()
endif
endif endif
elseif line =~ '^`' && s:syn_jsx_escapejs(current_syn_eol) elseif syntax_context == 'jsxElement'
" For `} of template syntax if s:is_jsx_comment(start_syntax)
let pair_line = searchpair('{', '', '}', 'bW') return s:jsx_indent_comment(v:lnum)
return indent(pair_line) endif
elseif line =~ '^/[/*]' " js comment in jsx tag
if get(prev_syn_sol, -1) =~ 'Punct' if s:is_comment(start_syntax)
return prev_ind + s:sw() return s:jsx_indent_comment(v:lnum)
elseif synIDattr(synID(lnum - 1, 1, 1), 'name') =~ 'jsxTag' endif
return prev_ind
return s:jsx_indent_element(v:lnum)
elseif syntax_context == 'jsxEscapeJs'
let prev_lnum = s:prev_lnum(v:lnum)
let prev_line = s:trim(getline(prev_lnum))
if line =~ '^?'
return indent(prev_lnum) + s:sw()
elseif line =~ '^:'
return indent(prev_lnum)
else else
return a:js_indent() return a:js_indent()
endif endif
else
let ind = a:js_indent()
" Issue #68
" return (<div>
" |<div>)
if (line =~ '^/\s*>' || line =~ '^<\s*' . s:end_tag)
\ && !s:syn_xmlish(prev_syn_sol)
return prev_ind
endif
" If current syntax is not a jsx syntax group
if s:syn_xmlish(prev_syn_eol) && line !~ '^[)\]}]'
let sol = matchstr(line, s:opfirst)
if sol is ''
" Fix javascript continue indent
return ind - s:sw()
else
return ind
endif
endif
return ind
endif endif
return a:js_indent()
endfunction endfunction
endif endif

View File

@@ -5,9 +5,16 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1
function! puppet#format#Format() abort function! puppet#format#Format() abort
let l:start_lnum = v:lnum let l:start_lnum = v:lnum
let l:end_lnum = v:lnum + v:count - 1 let l:end_lnum = v:lnum + v:count - 1
call puppet#format#Indention(l:start_lnum, l:end_lnum) " Don't modify indentation or alignment if called by textwidth. We'll only
call puppet#format#Hashrocket(l:start_lnum, l:end_lnum) " let the fallback function do its thing in this case so that textwidth
" still performs the expected feature.
if mode() !~# '[iR]'
call puppet#format#Indention(l:start_lnum, l:end_lnum)
call puppet#format#Hashrocket(l:start_lnum, l:end_lnum)
endif
call puppet#format#Fallback(l:start_lnum, l:end_lnum) call puppet#format#Fallback(l:start_lnum, l:end_lnum)
" explicitly avoid falling back to default formatting
return 0
endfunction endfunction
"" ""
@@ -37,10 +44,16 @@ endfunction
" lines which exeed &widthline are formated " lines which exeed &widthline are formated
" "
function! puppet#format#Fallback(start_lnum, end_lnum) abort function! puppet#format#Fallback(start_lnum, end_lnum) abort
" We shouldn't wrap lines based on textwidth if it is disabled
if &textwidth == 0
return
endif
" I'm using it to check if autoformat expand range " I'm using it to check if autoformat expand range
let l:eof_lnum = line('$') let l:eof_lnum = line('$')
let l:lnum = a:start_lnum let l:lnum = a:start_lnum
let l:end_lnum = a:end_lnum let l:end_lnum = a:end_lnum
while l:lnum <= l:end_lnum while l:lnum <= l:end_lnum
if strlen(getline(l:lnum)) > &textwidth if strlen(getline(l:lnum)) > &textwidth
call cursor(l:lnum) call cursor(l:lnum)

View File

@@ -398,10 +398,19 @@ function! s:RmDir(path)
echoerr 'Attempted to delete empty path' echoerr 'Attempted to delete empty path'
return 0 return 0
elseif a:path ==# '/' || a:path ==# $HOME elseif a:path ==# '/' || a:path ==# $HOME
echoerr 'Attempted to delete protected path: ' . a:path let l:path = expand(a:path)
if l:path ==# '/' || l:path ==# $HOME
echoerr 'Attempted to delete protected path: ' . a:path
return 0
endif
endif
if !isdirectory(a:path)
return 0 return 0
endif endif
return system("rm -rf " . shellescape(a:path))
" delete() returns 0 when removing file successfully
return delete(a:path, 'rf') == 0
endfunction endfunction
" Executes {cmd} with the cwd set to {pwd}, without changing Vim's cwd. " Executes {cmd} with the cwd set to {pwd}, without changing Vim's cwd.
@@ -507,8 +516,10 @@ function! rust#Test(all, options) abort
return rust#Run(1, '--test ' . a:options) return rust#Run(1, '--test ' . a:options)
endif endif
if has('terminal') || has('nvim') if has('terminal')
let cmd = 'terminal ' let cmd = 'terminal '
elseif has('nvim')
let cmd = 'noautocmd new | terminal '
else else
let cmd = '!' let cmd = '!'
let manifest = shellescape(manifest) let manifest = shellescape(manifest)

View File

@@ -8,7 +8,8 @@ let s:checked_ctags = 0
function! rust#tags#IsUCtags() abort function! rust#tags#IsUCtags() abort
if s:checked_ctags == 0 if s:checked_ctags == 0
if system('ctags --version') =~? 'universal ctags' let l:ctags_bin = get(g:, 'tagbar_ctags_bin', 'ctags')
if system(l:ctags_bin.' --version') =~? 'universal ctags'
let s:ctags_is_uctags = 1 let s:ctags_is_uctags = 1
endif endif
let s:checked_ctags = 1 let s:checked_ctags = 1

View File

@@ -112,7 +112,7 @@ function! s:DeleteLines(start, end) abort
silent! execute a:start . ',' . a:end . 'delete _' silent! execute a:start . ',' . a:end . 'delete _'
endfunction endfunction
function! s:RunRustfmt(command, tmpname, fail_silently) function! s:RunRustfmt(command, tmpname, from_writepre)
mkview! mkview!
let l:stderr_tmpname = tempname() let l:stderr_tmpname = tempname()
@@ -149,8 +149,10 @@ function! s:RunRustfmt(command, tmpname, fail_silently)
let l:open_lwindow = 0 let l:open_lwindow = 0
if v:shell_error == 0 if v:shell_error == 0
" remove undo point caused via BufWritePre if a:from_writepre
try | silent undojoin | catch | endtry " remove undo point caused via BufWritePre
try | silent undojoin | catch | endtry
endif
if a:tmpname ==# '' if a:tmpname ==# ''
let l:content = l:out let l:content = l:out
@@ -170,7 +172,7 @@ function! s:RunRustfmt(command, tmpname, fail_silently)
call setloclist(0, []) call setloclist(0, [])
let l:open_lwindow = 1 let l:open_lwindow = 1
endif endif
elseif g:rustfmt_fail_silently == 0 && a:fail_silently == 0 elseif g:rustfmt_fail_silently == 0 && !a:from_writepre
" otherwise get the errors and put them in the location list " otherwise get the errors and put them in the location list
let l:errors = [] let l:errors = []
@@ -224,12 +226,12 @@ function! rustfmt#FormatRange(line1, line2)
let l:tmpname = tempname() let l:tmpname = tempname()
call writefile(getline(1, '$'), l:tmpname) call writefile(getline(1, '$'), l:tmpname)
let command = s:RustfmtCommandRange(l:tmpname, a:line1, a:line2) let command = s:RustfmtCommandRange(l:tmpname, a:line1, a:line2)
call s:RunRustfmt(command, l:tmpname, 0) call s:RunRustfmt(command, l:tmpname, v:false)
call delete(l:tmpname) call delete(l:tmpname)
endfunction endfunction
function! rustfmt#Format() function! rustfmt#Format()
call s:RunRustfmt(s:RustfmtCommand(), '', 0) call s:RunRustfmt(s:RustfmtCommand(), '', v:false)
endfunction endfunction
function! rustfmt#Cmd() function! rustfmt#Cmd()
@@ -257,7 +259,7 @@ function! rustfmt#PreWrite()
return return
endif endif
call s:RunRustfmt(s:RustfmtCommand(), '', 1) call s:RunRustfmt(s:RustfmtCommand(), '', v:true)
endfunction endfunction

View File

@@ -1,5 +1,8 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'terraform') == -1 if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'terraform') == -1
" Ensure no conflict with arguments from the environment
let $TF_CLI_ARGS_fmt=''
function! terraform#fmt() function! terraform#fmt()
if !filereadable(expand('%:p')) if !filereadable(expand('%:p'))
return return
@@ -28,33 +31,34 @@ function! terraform#align()
endif endif
endfunction endfunction
function! terraform#commands(A, L, P) function! terraform#commands(ArgLead, CmdLine, CursorPos)
return [ let l:commands = [
\ 'apply', \ 'apply',
\ 'console', \ 'console',
\ 'destroy', \ 'destroy',
\ 'env', \ 'env',
\ 'fmt', \ 'fmt',
\ 'get', \ 'get',
\ 'graph', \ 'graph',
\ 'import', \ 'import',
\ 'init', \ 'init',
\ 'output', \ 'output',
\ 'plan', \ 'plan',
\ 'providers', \ 'providers',
\ 'refresh', \ 'refresh',
\ 'show', \ 'show',
\ 'taint', \ 'taint',
\ 'untaint', \ 'untaint',
\ 'validate', \ 'validate',
\ 'version', \ 'version',
\ 'workspace', \ 'workspace',
\ '0.12upgrade', \ '0.12upgrade',
\ 'debug', \ 'debug',
\ 'force-unlock', \ 'force-unlock',
\ 'push', \ 'push',
\ 'state' \ 'state'
\ ] \ ]
return join(l:commands, "\n")
endfunction endfunction
endif endif

2
build
View File

@@ -243,7 +243,7 @@ PACKS="
nix:LnL7/vim-nix nix:LnL7/vim-nix
objc:b4winckler/vim-objc objc:b4winckler/vim-objc
ocaml:rgrinberg/vim-ocaml ocaml:rgrinberg/vim-ocaml
octave:vim-scripts/octave.vim-- octave:McSinyx/vim-octave
opencl:petRUShka/vim-opencl opencl:petRUShka/vim-opencl
perl:vim-perl/vim-perl perl:vim-perl/vim-perl
pgsql:lifepillar/pgsql.vim pgsql:lifepillar/pgsql.vim

View File

@@ -276,6 +276,15 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dart') == -1
augroup filetypedetect augroup filetypedetect
" dart, from dart.vim in dart-lang/dart-vim-plugin " dart, from dart.vim in dart-lang/dart-vim-plugin
autocmd BufRead,BufNewFile *.dart set filetype=dart autocmd BufRead,BufNewFile *.dart set filetype=dart
function! s:DetectShebang()
if did_filetype() | return | endif
if getline(1) == '#!/usr/bin/env dart'
setlocal filetype=dart
endif
endfunction
autocmd BufRead * call s:DetectShebang()
augroup end augroup end
endif endif
@@ -623,6 +632,13 @@ autocmd BufNewFile,BufRead *Spec.js,*_spec.js set filetype=jasmine.javascript sy
augroup end augroup end
endif endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1
augroup filetypedetect
" javascript, from flow.vim in pangloss/vim-javascript:_JAVASCRIPT
autocmd BufNewFile,BufRead *.flow setfiletype flow
augroup end
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1
augroup filetypedetect augroup filetypedetect
" javascript, from javascript.vim in pangloss/vim-javascript:_JAVASCRIPT " javascript, from javascript.vim in pangloss/vim-javascript:_JAVASCRIPT
@@ -896,7 +912,7 @@ endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1 if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1
augroup filetypedetect augroup filetypedetect
" ocaml, from opam.vim in rgrinberg/vim-ocaml " ocaml, from opam.vim in rgrinberg/vim-ocaml
au BufNewFile,BufRead opam,*.opam set filetype=opam au BufNewFile,BufRead opam,*.opam,*.opam.template set filetype=opam
augroup end augroup end
endif endif
@@ -1047,6 +1063,7 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1
augroup filetypedetect augroup filetypedetect
" puppet, from puppet.vim in rodjek/vim-puppet " puppet, from puppet.vim in rodjek/vim-puppet
au! BufRead,BufNewFile *.pp setfiletype puppet au! BufRead,BufNewFile *.pp setfiletype puppet
au! BufRead,BufNewFile *.epp setfiletype embeddedpuppet
au! BufRead,BufNewFile Puppetfile setfiletype ruby au! BufRead,BufNewFile Puppetfile setfiletype ruby
augroup end augroup end
endif endif
@@ -1095,7 +1112,24 @@ endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'racket') == -1 if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'racket') == -1
augroup filetypedetect augroup filetypedetect
" racket, from racket.vim in wlangstroth/vim-racket " racket, from racket.vim in wlangstroth/vim-racket
au BufRead,BufNewFile *.rkt,*.rktl set filetype=racket "
let g:racket_hash_lang_regexp = '^#lang\s\+\([^][)(}{[:space:]]\+\)'
" Tries to detect filetype from #lang line; defaults to ft=racket.
function! RacketDetectHashLang()
let old_ft = &filetype
let matches = matchlist(getline(1), g:racket_hash_lang_regexp)
if ! empty(matches)
let &l:filetype = matches[1]
endif
if &filetype == old_ft
set filetype=racket
endif
endfunction
au BufRead,BufNewFile *.rkt,*.rktl call RacketDetectHashLang()
augroup end augroup end
endif endif
@@ -1427,15 +1461,15 @@ endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1 if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
augroup filetypedetect augroup filetypedetect
" typescript, from tsx.vim in HerringtonDarkholme/yats.vim " typescript, from typescript.vim in HerringtonDarkholme/yats.vim
autocmd BufNewFile,BufRead *.tsx setlocal filetype=typescript.tsx autocmd BufNewFile,BufRead *.ts setlocal filetype=typescript
augroup end augroup end
endif endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1 if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
augroup filetypedetect augroup filetypedetect
" typescript, from typescript.vim in HerringtonDarkholme/yats.vim " typescript, from typescriptreact.vim in HerringtonDarkholme/yats.vim
autocmd BufNewFile,BufRead *.ts setlocal filetype=typescript autocmd BufNewFile,BufRead *.tsx setlocal filetype=typescriptreact
augroup end augroup end
endif endif

View File

@@ -0,0 +1,79 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1
" Vim filetype plugin
" Language: embedded puppet
" Maintainer: Gabriel Filion <gabster@lelutin.ca>
" URL: https://github.com/rodjek/vim-puppet
" Last Change: 2019-09-01
" Only do this when not done yet for this buffer
if exists("b:did_ftplugin")
finish
endif
let s:save_cpo = &cpo
set cpo-=C
" Define some defaults in case the included ftplugins don't set them.
let s:undo_ftplugin = ""
let s:browsefilter = "All Files (*.*)\t*.*\n"
let s:match_words = ""
runtime! ftplugin/sh.vim
unlet! b:did_ftplugin
" Override our defaults if these were set by an included ftplugin.
if exists("b:undo_ftplugin")
let s:undo_ftplugin = b:undo_ftplugin
unlet b:undo_ftplugin
endif
if exists("b:browsefilter")
let s:browsefilter = b:browsefilter
unlet b:browsefilter
endif
if exists("b:match_words")
let s:match_words = b:match_words
unlet b:match_words
endif
let s:include = &l:include
let s:path = &l:path
let s:suffixesadd = &l:suffixesadd
runtime! ftplugin/puppet.vim
let b:did_ftplugin = 1
" Combine the new set of values with those previously included.
if exists("b:undo_ftplugin")
let s:undo_ftplugin = b:undo_ftplugin . " | " . s:undo_ftplugin
endif
if exists ("b:browsefilter")
let s:browsefilter = substitute(b:browsefilter,'\cAll Files (\*\.\*)\t\*\.\*\n','','') . s:browsefilter
endif
if exists("b:match_words")
let s:match_words = b:match_words . ',' . s:match_words
endif
if len(s:include)
let &l:include = s:include
endif
let &l:path = s:path . (s:path =~# ',$\|^$' ? '' : ',') . &l:path
let &l:suffixesadd = s:suffixesadd . (s:suffixesadd =~# ',$\|^$' ? '' : ',') . &l:suffixesadd
unlet s:include s:path s:suffixesadd
" Load the combined list of match_words for matchit.vim
if exists("loaded_matchit")
let b:match_words = s:match_words
endif
" TODO: comments=
setlocal commentstring=<%#%s%>
let b:undo_ftplugin = "setl cms< "
\ " | unlet! b:browsefilter b:match_words | " . s:undo_ftplugin
let &cpo = s:save_cpo
unlet s:save_cpo
endif

View File

@@ -3,8 +3,8 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mako') == -1
" Vim filetype plugin file " Vim filetype plugin file
" Language: Mako " Language: Mako
" Maintainer: Randy Stauner <randy@magnificent-tears.com> " Maintainer: Randy Stauner <randy@magnificent-tears.com>
" Last Change: 2014-02-07 " Last Change: 2019-09-06
" Version: 0.1 " Version: 0.2
if exists("b:did_ftplugin") | finish | endif if exists("b:did_ftplugin") | finish | endif
let b:did_ftplugin = 1 let b:did_ftplugin = 1
@@ -12,4 +12,12 @@ let b:did_ftplugin = 1
setlocal comments=:## setlocal comments=:##
setlocal commentstring=##%s setlocal commentstring=##%s
if exists("loaded_matchit")
let b:match_ignorecase = 1
let b:match_words = "<:>," .
\ "<\@<=[ou]l\>[^>]*\%(>\|$\):<\@<=li\>:<\@<=/[ou]l>," .
\ "<\@<=dl\>[^>]*\%(>\|$\):<\@<=d[td]\>:<\@<=/dl>," .
\ "<\@<=\([^/][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>"
endif
endif endif

View File

@@ -2,6 +2,7 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'meson') == -1
" Vim filetype plugin file " Vim filetype plugin file
" Language: meson " Language: meson
" License: VIM License
" Original Author: Laurent Pinchart <laurent.pinchart@ideasonboard.com> " Original Author: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
" Last Change: 2018 Nov 27 " Last Change: 2018 Nov 27
@@ -10,6 +11,9 @@ let b:did_ftplugin = 1
let s:keepcpo= &cpo let s:keepcpo= &cpo
set cpo&vim set cpo&vim
setlocal commentstring=#\ %s
setlocal comments=:#
setlocal shiftwidth=2 setlocal shiftwidth=2
setlocal softtabstop=2 setlocal softtabstop=2

View File

@@ -393,9 +393,9 @@ endfunction
endif endif
endfun endfun
" This variable contain a dictionnary of list. Each element of the dictionnary " This variable contains a dictionary of lists. Each element of the dictionary
" represent an annotation system. An annotation system is a list with : " represents an annotation system. An annotation system is a list with:
" - annotation file name as it's key " - annotation file name as its key
" - annotation file path as first element of the contained list " - annotation file path as first element of the contained list
" - build path as second element of the contained list " - build path as second element of the contained list
" - annot_file_last_mod (contain the date of .annot file) as third element " - annot_file_last_mod (contain the date of .annot file) as third element

View File

@@ -37,10 +37,10 @@ endif
setlocal comments=s1:/',mb:',ex:'/,:' commentstring=/'%s'/ formatoptions-=t formatoptions+=croql setlocal comments=s1:/',mb:',ex:'/,:' commentstring=/'%s'/ formatoptions-=t formatoptions+=croql
let b:endwise_addition = '\=index(["note","legend"], submatch(0))!=-1 ? "end " . submatch(0) : "end"' let b:endwise_addition = '\=index(["dot","mindmap","uml","salt","wbs"], submatch(0))!=-1 ? "@end" . submatch(0) : index(["note","legend"], submatch(0))!=-1 ? "end " . submatch(0) : "end"'
let b:endwise_words = 'loop,group,alt,note,legend' let b:endwise_words = 'loop,group,alt,note,legend,startdot,startmindmap,startuml,startsalt,startwbs'
let b:endwise_pattern = '^\s*\zs\<\(loop\|group\|alt\|note\ze[^:]*$\|legend\)\>.*$' let b:endwise_pattern = '^\s*\zs\(loop\|group\|alt\|note\ze[^:]*$\|legend\|@start\zs\(dot\|mindmap\|uml\|salt\|wbs\)\)\>.*$'
let b:endwise_syngroups = 'plantumlKeyword' let b:endwise_syngroups = 'plantumlKeyword,plantumlPreProc'
let &cpoptions = s:cpo_save let &cpoptions = s:cpo_save
unlet s:cpo_save unlet s:cpo_save

View File

@@ -1,11 +1,32 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1 if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1
setl ts=2 " Vim filetype plugin
setl sts=2 " Language: Puppet
setl sw=2 " Maintainer: Tim Sharpe <tim@sharpe.id.au>
setl et " URL: https://github.com/rodjek/vim-puppet
setl keywordprg=puppet\ describe\ --providers " Last Change: 2019-08-31
setl iskeyword=-,:,@,48-57,_,192-255
setl cms=#\ %s if (exists("b:did_ftplugin"))
finish
endif
let b:did_ftplugin = 1
setlocal tabstop=2
setlocal softtabstop=2
setlocal shiftwidth=2
setlocal expandtab
setlocal keywordprg=puppet\ describe\ --providers
setlocal iskeyword=:,@,48-57,_,192-255
setlocal comments=sr:/*,mb:*,ex:*/,b:#
setlocal commentstring=#\ %s
setlocal formatoptions-=t formatoptions+=croql
setlocal formatexpr=puppet#format#Format()
let b:undo_ftplugin = "
\ setlocal tabstop< tabstop< softtabstop< shiftwidth< expandtab<
\| setlocal keywordprg< iskeyword< comments< commentstring<
\| setlocal formatoptions< formatexpr<
\"
endif endif

View File

@@ -374,7 +374,6 @@ function! RubyCursorFile() abort
endtry endtry
let pre = matchstr(strpart(getline('.'), 0, col('.')-1), '.*\f\@<!') let pre = matchstr(strpart(getline('.'), 0, col('.')-1), '.*\f\@<!')
let post = matchstr(strpart(getline('.'), col('.')), '\f\@!.*') let post = matchstr(strpart(getline('.'), col('.')), '\f\@!.*')
let ext = getline('.') =~# '^\s*\%(require\%(_relative\)\=\|autoload\)\>' && cfile !~# '\.rb$' ? '.rb' : ''
if s:synid() ==# hlID('rubyConstant') if s:synid() ==# hlID('rubyConstant')
let cfile = substitute(cfile,'\.\w\+[?!=]\=$','','') let cfile = substitute(cfile,'\.\w\+[?!=]\=$','','')
let cfile = substitute(cfile,'^::','','') let cfile = substitute(cfile,'^::','','')
@@ -383,12 +382,15 @@ function! RubyCursorFile() abort
let cfile = substitute(cfile,'\(\l\|\d\)\(\u\)','\1_\2', 'g') let cfile = substitute(cfile,'\(\l\|\d\)\(\u\)','\1_\2', 'g')
return tolower(cfile) . '.rb' return tolower(cfile) . '.rb'
elseif getline('.') =~# '^\s*require_relative\s*\(["'']\).*\1\s*$' elseif getline('.') =~# '^\s*require_relative\s*\(["'']\).*\1\s*$'
let cfile = expand('%:p:h') . '/' . matchstr(getline('.'),'\(["'']\)\zs.\{-\}\ze\1') . ext let cfile = expand('%:p:h') . '/' . matchstr(getline('.'),'\(["'']\)\zs.\{-\}\ze\1')
let cfile .= cfile !~# '\.rb$' ? '.rb' : ''
elseif getline('.') =~# '^\s*\%(require[( ]\|load[( ]\|autoload[( ]:\w\+,\)\s*\%(::\)\=File\.expand_path(\(["'']\)\.\./.*\1,\s*__FILE__)\s*$' elseif getline('.') =~# '^\s*\%(require[( ]\|load[( ]\|autoload[( ]:\w\+,\)\s*\%(::\)\=File\.expand_path(\(["'']\)\.\./.*\1,\s*__FILE__)\s*$'
let target = matchstr(getline('.'),'\(["'']\)\.\.\zs/.\{-\}\ze\1') let target = matchstr(getline('.'),'\(["'']\)\.\.\zs/.\{-\}\ze\1')
let cfile = expand('%:p:h') . target . ext let cfile = expand('%:p:h') . target
let cfile .= cfile !~# '\.rb$' ? '.rb' : ''
elseif getline('.') =~# '^\s*\%(require \|load \|autoload :\w\+,\)\s*\(["'']\).*\1\s*$' elseif getline('.') =~# '^\s*\%(require \|load \|autoload :\w\+,\)\s*\(["'']\).*\1\s*$'
let cfile = matchstr(getline('.'),'\(["'']\)\zs.\{-\}\ze\1') . ext let cfile = matchstr(getline('.'),'\(["'']\)\zs.\{-\}\ze\1')
let cfile .= cfile !~# '\.rb$' ? '.rb' : ''
elseif pre.post =~# '\<File.expand_path[( ].*[''"]\{2\}, *__FILE__\>' && cfile =~# '^\.\.' elseif pre.post =~# '\<File.expand_path[( ].*[''"]\{2\}, *__FILE__\>' && cfile =~# '^\.\.'
let cfile = expand('%:p:h') . strpart(cfile, 2) let cfile = expand('%:p:h') . strpart(cfile, 2)
else else

26
ftplugin/systemd.vim Normal file
View File

@@ -0,0 +1,26 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'systemd') == -1
" Vim filetype plugin file
" Language: systemd unit files
" Previous Maintainer: Will Woods <wwoods@redhat.com>
" Latest Revision: Sep 25, 2019
" These are, as it turns out, exactly the same settings as ftplugin/conf.vim
if exists("b:did_ftplugin")
finish
endif
let b:did_ftplugin = 1
let s:cpo_save = &cpo
set cpo&vim
let b:undo_ftplugin = "setl com< cms< fo<"
setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql
let &cpo = s:cpo_save
unlet s:cpo_save
endif

View File

@@ -47,7 +47,7 @@ endif
let s:cpo_save = &cpoptions let s:cpo_save = &cpoptions
set cpoptions&vim set cpoptions&vim
command! -nargs=+ -complete=customlist,terraform#commands -buffer Terraform execute '!terraform '.<q-args>. ' -no-color' command! -nargs=+ -complete=custom,terraform#commands -buffer Terraform execute '!terraform '.<q-args>. ' -no-color'
command! -nargs=0 -buffer TerraformFmt call terraform#fmt() command! -nargs=0 -buffer TerraformFmt call terraform#fmt()
let b:undo_ftplugin .= '|delcommand Terraform|delcommand TerraformFmt' let b:undo_ftplugin .= '|delcommand Terraform|delcommand TerraformFmt'

View File

@@ -34,7 +34,7 @@ endfunction
set path+=./node_modules/**,node_modules/** set path+=./node_modules/**,node_modules/**
set include=import\_s.\\zs[^'\"]*\\ze set include=import\_s.\\zs[^'\"]*\\ze
set includeexpr=TsIncludeExpr(v:fname) set includeexpr=TsIncludeExpr(v:fname)
set suffixesadd=.ts set suffixesadd+=.ts
" "
" TagBar " TagBar

View File

@@ -7,9 +7,9 @@ endif
let b:did_ftplugin = 1 let b:did_ftplugin = 1
set expandtab setlocal expandtab
set tabstop=4 setlocal tabstop=4
set shiftwidth=4 setlocal shiftwidth=4
setlocal suffixesadd=.zig setlocal suffixesadd=.zig
setlocal commentstring=//\ %s setlocal commentstring=//\ %s

View File

@@ -2,6 +2,7 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'meson') == -1
" Vim indent file " Vim indent file
" Language: Meson " Language: Meson
" License: VIM License
" Maintainer: Nirbheek Chauhan <nirbheek.chauhan@gmail.com> " Maintainer: Nirbheek Chauhan <nirbheek.chauhan@gmail.com>
" Original Authors: David Bustos <bustos@caltech.edu> " Original Authors: David Bustos <bustos@caltech.edu>
" Bram Moolenaar <Bram@vim.org> " Bram Moolenaar <Bram@vim.org>

77
indent/octave.vim Normal file
View File

@@ -0,0 +1,77 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'octave') == -1
" Vim indent file
" Language: Octave
" Maintainer: Nguyễn Gia Phong <vn.mcsinyx@gmail.com>
" Original Maintainer: Marcus Aurelius Farias <marcus.cf@bol.com.br>
" First Author: Max Ischenko <mfi@ukr.net>
" Last Change: 2019-10-16
" Only load this indent file when no other was loaded.
if exists("b:did_indent")
finish
endif
let b:did_indent = 1
let s:beginBlock = ['for', 'parfor', 'function', 'if', 'switch',
\'try', 'unwind_protect', 'while', 'do', 'classdef',
\'enumeration', 'events', 'methods', 'properties']
let s:midBlock = ['case', 'catch', 'else', 'elseif', 'otherwise',
\'unwind_protect_cleanup']
let s:endBlock = ['end', 'endfor', 'endparfor', 'endfunction', 'endif',
\'end_try_catch', 'end_unwind_protect', 'endwhile',
\'endclassdef', 'endenumeration', 'endevents',
\'endproperties', 'endswitch', 'until', 'endmethods']
let s:openBlock = s:beginBlock + s:midBlock
let s:closeBlock = s:midBlock + s:endBlock
" To make Vim call GetOctaveIndent() when it finds a block closer
" on the current line ('else' is default and includes 'elseif').
setlocal indentkeys+=0=end,0=until,0=case,0=catch,0=otherwise
setlocal indentkeys+=0=unwind_protect_cleanup
" Only define the function once.
if exists("*GetOctaveIndent")
finish
endif
function! GetOctaveIndent()
" Find a non-blank line above the current line.
let prevlnum = prevnonblank(v:lnum - 1)
" Hit the start of the file, use zero indent.
if prevlnum == 0
return 0
endif
let ind = indent(prevlnum)
let prevl = getline(prevlnum)
let l = getline(v:lnum)
" Add a 'shiftwidth' after lines starting a block:
let openCol = match(prevl, '^\s*\%(' . join(s:openBlock, '\>\|') . '\>\)') + 1
let hasNoEnd = prevl !~ ('\<' . join(s:endBlock, '\>\|\<') . '\>')
if openCol && hasNoEnd
let openSynID = synID(prevlnum, openCol, 1)
if synIDattr(openSynID, "name") != "octaveComment"
let ind = ind + shiftwidth()
endif
endif
" Subtract a 'shiftwidth' on closure of blocks,
" i.e. the part that required 'indentkeys'.
let closeCol = match(l, '^\s*\%(' . join(s:closeBlock, '\>\|') . '\>\)') + 1
if closeCol
let closeSynID = synID(v:lnum, closeCol, 1)
if synIDattr(closeSynID, "name") != "octaveComment"
let ind = ind - shiftwidth()
endif
endif
return ind
endfunction
setlocal indentexpr=GetOctaveIndent()
setlocal autoindent
endif

View File

@@ -77,7 +77,7 @@ endfunction
function! s:getIncIndent() abort function! s:getIncIndent() abort
" Function to determine the s:incIndent pattern " Function to determine the s:incIndent pattern
return return
\ '^\s*\%(class\|object\|interface\|partition\|rectangle\|enum\|namespace\)\>.*{\s*$\|' . \ '^\s*\%(class\|object\|interface\|partition\|rectangle\|enum\|namespace\|package\)\>.*{\s*$\|' .
\ '^\s*\%(loop\|alt\|opt\|group\|critical\|else\|legend\|box\|if\|while\|fork\|split\)\>\|' . \ '^\s*\%(loop\|alt\|opt\|group\|critical\|else\|legend\|box\|if\|while\|fork\|split\)\>\|' .
\ '^\s*ref\>[^:]*$\|' . \ '^\s*ref\>[^:]*$\|' .
\ '^\s*[hr]\?note\>\%(\%("[^"]*" \<as\>\)\@![^:]\)*$\|' . \ '^\s*[hr]\?note\>\%(\%("[^"]*" \<as\>\)\@![^:]\)*$\|' .

View File

@@ -14,7 +14,10 @@ let b:did_indent = 1
setlocal autoindent smartindent setlocal autoindent smartindent
setlocal indentexpr=GetPuppetIndent() setlocal indentexpr=GetPuppetIndent()
setlocal indentkeys+=0],0) setlocal indentkeys+=0],0)
setlocal formatexpr=puppet#format#Format()
let b:undo_indent = "
\ setlocal autoindent< smartindent< indentexpr< indentkeys<
\"
if exists("*GetPuppetIndent") if exists("*GetPuppetIndent")
finish finish

63
indent/rst.vim Normal file
View File

@@ -0,0 +1,63 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rst') == -1
" Vim indent file
" Language: reStructuredText Documentation Format
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
" Latest Revision: 2011-08-03
if exists("b:did_indent")
finish
endif
let b:did_indent = 1
setlocal indentexpr=GetRSTIndent()
setlocal indentkeys=!^F,o,O
setlocal nosmartindent
if exists("*GetRSTIndent")
finish
endif
let s:itemization_pattern = '^\s*[-*+]\s'
let s:enumeration_pattern = '^\s*\%(\d\+\|#\)\.\s\+'
function GetRSTIndent()
let lnum = prevnonblank(v:lnum - 1)
if lnum == 0
return 0
endif
let ind = indent(lnum)
let line = getline(lnum)
if line =~ s:itemization_pattern
let ind += 2
elseif line =~ s:enumeration_pattern
let ind += matchend(line, s:enumeration_pattern)
endif
let line = getline(v:lnum - 1)
" Indent :FIELD: lines. Dont match if there is no text after the field or
" if the text ends with a sent-ender.
if line =~ '^:.\+:\s\{-1,\}\S.\+[^.!?:]$'
return matchend(line, '^:.\{-1,}:\s\+')
endif
if line =~ '^\s*$'
execute lnum
call search('^\s*\%([-*+]\s\|\%(\d\+\|#\)\.\s\|\.\.\|$\)', 'bW')
let line = getline('.')
if line =~ s:itemization_pattern
let ind -= 2
elseif line =~ s:enumeration_pattern
let ind -= matchend(line, s:enumeration_pattern)
elseif line =~ '^\s*\.\.'
let ind -= 3
endif
endif
return ind
endfunction
endif

View File

@@ -67,8 +67,8 @@ let s:var_stmt = '^\s*var'
let s:comma_first = '^\s*,' let s:comma_first = '^\s*,'
let s:comma_last = ',\s*$' let s:comma_last = ',\s*$'
let s:ternary = '^\s\+[?|:]' let s:ternary = '^\s\+[?:]'
let s:ternary_q = '^\s\+?' let s:ternary_q = '^\s\+?[.?]\@!'
" 2. Auxiliary Functions {{{1 " 2. Auxiliary Functions {{{1
" ====================== " ======================

View File

@@ -1,5 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1 if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
exe 'runtime! indent/typescript.vim'
" Save the current JavaScript indentexpr. " Save the current JavaScript indentexpr.
let b:tsx_ts_indentexpr = &indentexpr let b:tsx_ts_indentexpr = &indentexpr
@@ -110,5 +111,4 @@ fu! GetTsxIndent()
return ind return ind
endfu endfu
endif endif

View File

@@ -37,7 +37,7 @@ syn region dockerfileString1 start=/'/ skip=/\\'|\\\\/ end=/'/
syn region dockerfileEmail start=/</ end=/>/ contains=@ oneline syn region dockerfileEmail start=/</ end=/>/ contains=@ oneline
" Urls " Urls
syn match dockerfileUrl /\(http\|https\|ssh\|hg\|git\)\:\/\/[a-zA-Z0-9\/\-\.]\+/ syn match dockerfileUrl /\(http\|https\|ssh\|hg\|git\)\:\/\/[a-zA-Z0-9\/\-\._]\+/
" Task tags " Task tags
syn keyword dockerfileTodo contained TODO FIXME XXX syn keyword dockerfileTodo contained TODO FIXME XXX

View File

@@ -62,7 +62,7 @@ fun! s:attribute_highlight(attributes)
elseif a:attributes =~ 'd' elseif a:attributes =~ 'd'
highlight link ansible_attributes Comment highlight link ansible_attributes Comment
else else
highlight link ansible_attributes Structure highlight default link ansible_attributes Structure
endif endif
endfun endfun
@@ -77,12 +77,12 @@ if exists("g:ansible_name_highlight")
if g:ansible_name_highlight =~ 'd' if g:ansible_name_highlight =~ 'd'
highlight link ansible_name Comment highlight link ansible_name Comment
else else
highlight link ansible_name Underlined highlight default link ansible_name Underlined
endif endif
endif endif
execute 'syn keyword ansible_debug_keywords debug containedin='.s:yamlKey.' contained' execute 'syn keyword ansible_debug_keywords debug containedin='.s:yamlKey.' contained'
highlight link ansible_debug_keywords Debug highlight default link ansible_debug_keywords Debug
if exists("g:ansible_extra_keywords_highlight") if exists("g:ansible_extra_keywords_highlight")
execute 'syn keyword ansible_extra_special_keywords register always_run changed_when failed_when no_log args vars delegate_to ignore_errors containedin='.s:yamlKey.' contained' execute 'syn keyword ansible_extra_special_keywords register always_run changed_when failed_when no_log args vars delegate_to ignore_errors containedin='.s:yamlKey.' contained'
@@ -93,14 +93,14 @@ execute 'syn keyword ansible_normal_keywords include include_tasks import_tasks
if exists("g:ansible_normal_keywords_highlight") if exists("g:ansible_normal_keywords_highlight")
execute 'highlight link ansible_normal_keywords '.g:ansible_normal_keywords_highlight execute 'highlight link ansible_normal_keywords '.g:ansible_normal_keywords_highlight
else else
highlight link ansible_normal_keywords Statement highlight default link ansible_normal_keywords Statement
endif endif
execute 'syn match ansible_with_keywords "\vwith_.+" containedin='.s:yamlKey.' contained' execute 'syn match ansible_with_keywords "\vwith_.+" containedin='.s:yamlKey.' contained'
if exists("g:ansible_with_keywords_highlight") if exists("g:ansible_with_keywords_highlight")
execute 'highlight link ansible_with_keywords '.g:ansible_with_keywords_highlight execute 'highlight link ansible_with_keywords '.g:ansible_with_keywords_highlight
else else
highlight link ansible_with_keywords Statement highlight default link ansible_with_keywords Statement
endif endif
let b:current_syntax = "ansible" let b:current_syntax = "ansible"

View File

@@ -16,11 +16,11 @@ syn region hostsHeader start="\v^\s*\[" end="\v\]"
syn keyword hostsHeaderSpecials children vars containedin=hostsHeader contained syn keyword hostsHeaderSpecials children vars containedin=hostsHeader contained
syn match hostsComment "\v^[#;].*$" syn match hostsComment "\v^[#;].*$"
highlight link hostsFirstWord Label highlight default link hostsFirstWord Label
highlight link hostsHeader Define highlight default link hostsHeader Define
highlight link hostsComment Comment highlight default link hostsComment Comment
highlight link hostsHeaderSpecials Identifier highlight default link hostsHeaderSpecials Identifier
highlight link hostsAttributes Structure highlight default link hostsAttributes Structure
if exists("g:ansible_attribute_highlight") if exists("g:ansible_attribute_highlight")
if g:ansible_attribute_highlight =~ 'n' if g:ansible_attribute_highlight =~ 'n'

View File

@@ -22,7 +22,7 @@ syntax match typescriptProp contained /\K\k*!\?/
syntax region typescriptIndexExpr contained matchgroup=typescriptProperty start=/\[/rs=s+1 end=/]/he=e-1 contains=@typescriptValue nextgroup=@typescriptSymbols,typescriptDotNotation,typescriptFuncCallArg skipwhite skipempty syntax region typescriptIndexExpr contained matchgroup=typescriptProperty start=/\[/rs=s+1 end=/]/he=e-1 contains=@typescriptValue nextgroup=@typescriptSymbols,typescriptDotNotation,typescriptFuncCallArg skipwhite skipempty
syntax match typescriptDotNotation /\./ nextgroup=typescriptProp skipnl syntax match typescriptDotNotation /\.\|?\.\|!\./ nextgroup=typescriptProp skipnl
syntax match typescriptDotStyleNotation /\.style\./ nextgroup=typescriptDOMStyle transparent syntax match typescriptDotStyleNotation /\.style\./ nextgroup=typescriptDOMStyle transparent
" syntax match typescriptFuncCall contained /[a-zA-Z]\k*\ze(/ nextgroup=typescriptFuncCallArg " syntax match typescriptFuncCall contained /[a-zA-Z]\k*\ze(/ nextgroup=typescriptFuncCallArg
syntax region typescriptParenExp matchgroup=typescriptParens start=/(/ end=/)/ contains=@typescriptComments,@typescriptValue,typescriptCastKeyword nextgroup=@typescriptSymbols skipwhite skipempty syntax region typescriptParenExp matchgroup=typescriptParens start=/(/ end=/)/ contains=@typescriptComments,@typescriptValue,typescriptCastKeyword nextgroup=@typescriptSymbols skipwhite skipempty

View File

@@ -5,7 +5,7 @@ syntax match typescriptUnaryOp /[+\-~!]/
\ nextgroup=@typescriptValue \ nextgroup=@typescriptValue
\ skipwhite \ skipwhite
syntax region typescriptTernary matchgroup=typescriptTernaryOp start=/?/ end=/:/ contained contains=@typescriptValue,@typescriptComments nextgroup=@typescriptValue skipwhite skipempty syntax region typescriptTernary matchgroup=typescriptTernaryOp start=/?[.?]\@!/ end=/:/ contained contains=@typescriptValue,@typescriptComments nextgroup=@typescriptValue skipwhite skipempty
syntax match typescriptAssign /=/ nextgroup=@typescriptValue syntax match typescriptAssign /=/ nextgroup=@typescriptValue
\ skipwhite skipempty \ skipwhite skipempty

View File

@@ -52,7 +52,8 @@ syntax cluster typescriptPrimaryType contains=
\ typescriptTupleType, \ typescriptTupleType,
\ typescriptTypeQuery, \ typescriptTypeQuery,
\ typescriptStringLiteralType, \ typescriptStringLiteralType,
\ typescriptReadonlyArrayKeyword \ typescriptReadonlyArrayKeyword,
\ typescriptAssertType
syntax region typescriptStringLiteralType contained syntax region typescriptStringLiteralType contained
\ start=/\z(["']\)/ skip=/\\\\\|\\\z1\|\\\n/ end=/\z1\|$/ \ start=/\z(["']\)/ skip=/\\\\\|\\\z1\|\\\n/ end=/\z1\|$/
@@ -91,8 +92,8 @@ syntax cluster typescriptTypeMember contains=
syntax region typescriptTupleType matchgroup=typescriptBraces syntax region typescriptTupleType matchgroup=typescriptBraces
\ start=/\[/ end=/\]/ \ start=/\[/ end=/\]/
\ contains=@typescriptType \ contains=@typescriptType,@typescriptComments
\ contained skipwhite oneline \ contained skipwhite
syntax cluster typescriptTypeOperator syntax cluster typescriptTypeOperator
\ contains=typescriptUnion,typescriptTypeBracket \ contains=typescriptUnion,typescriptTypeBracket
@@ -130,6 +131,10 @@ syntax keyword typescriptTypeQuery typeof keyof
\ nextgroup=typescriptTypeReference \ nextgroup=typescriptTypeReference
\ contained skipwhite skipnl \ contained skipwhite skipnl
syntax keyword typescriptAssertType asserts
\ nextgroup=typescriptTypeReference
\ contained skipwhite skipnl
syntax cluster typescriptCallSignature contains=typescriptGenericCall,typescriptCall syntax cluster typescriptCallSignature contains=typescriptGenericCall,typescriptCall
syntax region typescriptGenericCall matchgroup=typescriptTypeBrackets syntax region typescriptGenericCall matchgroup=typescriptTypeBrackets
\ start=/</ end=/>/ \ start=/</ end=/>/

View File

@@ -33,9 +33,7 @@ syn keyword carpSyntax relative-include not-on-windows load-and-use
syn keyword carpSyntax deftest syn keyword carpSyntax deftest
syn match carpSyntax "\vc(a|d){1,4}r" syn match carpSyntax "\vc(a|d){1,4}r"
syn keyword carpFunc Int Float Double Bool String Char Array Fn Ref Long λ syn keyword carpFunc λ
syn keyword carpFunc Maybe Map Result Set Pair
syn keyword carpFunc Pattern
syn keyword carpFunc not or and + - * / = /= >= <= > < inc dec syn keyword carpFunc not or and + - * / = /= >= <= > < inc dec
syn keyword carpFunc println print get-line from-string mod random syn keyword carpFunc println print get-line from-string mod random
syn keyword carpFunc random-between str mask delete append length duplicate syn keyword carpFunc random-between str mask delete append length duplicate
@@ -76,6 +74,8 @@ syn keyword carpFunc assert-op assert-equal assert-not-equal assert-true
syn keyword carpFunc assert-false assert-exit print-test-results with-test syn keyword carpFunc assert-false assert-exit print-test-results with-test
syn keyword carpFunc dir-from-path file-from-path syn keyword carpFunc dir-from-path file-from-path
syn match carpFunc "[A-Z]\w\+"
syn match carpSymbol ,\k+, contained syn match carpSymbol ,\k+, contained
syn match carpTodo /\v<(FIXME|NOTE|TODO|OPTIMIZE)/ containedin=carpComment,carpString syn match carpTodo /\v<(FIXME|NOTE|TODO|OPTIMIZE)/ containedin=carpComment,carpString
@@ -105,8 +105,8 @@ syn region carpPattern start=/\%(\\\)\@<!\#"/ skip=/\\[\\"]/ end=/"/
syn cluster carpNormal add=carpError,carpStruc,carpString,carpPattern syn cluster carpNormal add=carpError,carpStruc,carpString,carpPattern
syn cluster carpQuotedOrNormal add=carpString syn cluster carpQuotedOrNormal add=carpString
syn match carpNumber "\<[-+]\?\(\d\+\|\d\+#*\.\|\d*\.\d\+\)#*\(/\d\+#*\)\?[lf]\?\>" contains=carpContainedNumberError syn match carpNumber "\<[-+]\?\(\d\+\|\d\+#*\.\|\d*\.\d\+\)#*\(/\d\+#*\)\?[lfb]\?\>" contains=carpContainedNumberError
syn match carpNumber "\<[-+]\?\d\+/\d\+[lf]\?\>" contains=carpContainedNumberError syn match carpNumber "\<[-+]\?\d\+/\d\+[lfb]\?\>" contains=carpContainedNumberError
syn keyword carpBoolean true false syn keyword carpBoolean true false

View File

@@ -2,14 +2,14 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cmake') == -1
" Vim syntax file " Vim syntax file
" Program: CMake - Cross-Platform Makefile Generator " Program: CMake - Cross-Platform Makefile Generator
" Version: cmake version 3.14.20190529-g067a4f " Version: cmake version 3.16.20191028-g0e4190b
" Language: CMake " Language: CMake
" Author: Andy Cedilnik <andy.cedilnik@kitware.com>, " Author: Andy Cedilnik <andy.cedilnik@kitware.com>,
" Nicholas Hutchinson <nshutchinson@gmail.com>, " Nicholas Hutchinson <nshutchinson@gmail.com>,
" Patrick Boettcher <patrick.boettcher@posteo.de> " Patrick Boettcher <patrick.boettcher@posteo.de>
" Maintainer: Dimitri Merejkowsky <d.merej@gmail.com> " Maintainer: Dimitri Merejkowsky <d.merej@gmail.com>
" Former Maintainer: Karthik Krishnan <karthik.krishnan@kitware.com> " Former Maintainer: Karthik Krishnan <karthik.krishnan@kitware.com>
" Last Change: 2019 May 29 " Last Change: 2019 oct. 29
" "
" Licence: The CMake license applies to this file. See " Licence: The CMake license applies to this file. See
" https://cmake.org/licensing " https://cmake.org/licensing
@@ -81,6 +81,7 @@ syn keyword cmakeProperty contained
\ AUTOMOC_EXECUTABLE \ AUTOMOC_EXECUTABLE
\ AUTOMOC_MACRO_NAMES \ AUTOMOC_MACRO_NAMES
\ AUTOMOC_MOC_OPTIONS \ AUTOMOC_MOC_OPTIONS
\ AUTOMOC_PATH_PREFIX
\ AUTOMOC_SOURCE_GROUP \ AUTOMOC_SOURCE_GROUP
\ AUTOMOC_TARGETS_FOLDER \ AUTOMOC_TARGETS_FOLDER
\ AUTORCC \ AUTORCC
@@ -145,6 +146,7 @@ syn keyword cmakeProperty contained
\ DEPLOYMENT_REMOTE_DIRECTORY \ DEPLOYMENT_REMOTE_DIRECTORY
\ DISABLED \ DISABLED
\ DISABLED_FEATURES \ DISABLED_FEATURES
\ DISABLE_PRECOMPILE_HEADERS
\ DOTNET_TARGET_FRAMEWORK_VERSION \ DOTNET_TARGET_FRAMEWORK_VERSION
\ ECLIPSE_EXTRA_CPROJECT_CONTENTS \ ECLIPSE_EXTRA_CPROJECT_CONTENTS
\ ECLIPSE_EXTRA_NATURES \ ECLIPSE_EXTRA_NATURES
@@ -202,6 +204,7 @@ syn keyword cmakeProperty contained
\ INCLUDE_DIRECTORIES \ INCLUDE_DIRECTORIES
\ INCLUDE_REGULAR_EXPRESSION \ INCLUDE_REGULAR_EXPRESSION
\ INSTALL_NAME_DIR \ INSTALL_NAME_DIR
\ INSTALL_REMOVE_ENVIRONMENT_RPATH
\ INSTALL_RPATH \ INSTALL_RPATH
\ INSTALL_RPATH_USE_LINK_PATH \ INSTALL_RPATH_USE_LINK_PATH
\ INTERFACE_AUTOUIC_OPTIONS \ INTERFACE_AUTOUIC_OPTIONS
@@ -214,6 +217,7 @@ syn keyword cmakeProperty contained
\ INTERFACE_LINK_LIBRARIES \ INTERFACE_LINK_LIBRARIES
\ INTERFACE_LINK_OPTIONS \ INTERFACE_LINK_OPTIONS
\ INTERFACE_POSITION_INDEPENDENT_CODE \ INTERFACE_POSITION_INDEPENDENT_CODE
\ INTERFACE_PRECOMPILE_HEADERS
\ INTERFACE_SOURCES \ INTERFACE_SOURCES
\ INTERFACE_SYSTEM_INCLUDE_DIRECTORIES \ INTERFACE_SYSTEM_INCLUDE_DIRECTORIES
\ INTERPROCEDURAL_OPTIMIZATION \ INTERPROCEDURAL_OPTIMIZATION
@@ -266,10 +270,13 @@ syn keyword cmakeProperty contained
\ PDB_OUTPUT_DIRECTORY \ PDB_OUTPUT_DIRECTORY
\ POSITION_INDEPENDENT_CODE \ POSITION_INDEPENDENT_CODE
\ POST_INSTALL_SCRIPT \ POST_INSTALL_SCRIPT
\ PRECOMPILE_HEADERS
\ PRECOMPILE_HEADERS_REUSE_FROM
\ PREDEFINED_TARGETS_FOLDER \ PREDEFINED_TARGETS_FOLDER
\ PREFIX \ PREFIX
\ PRE_INSTALL_SCRIPT \ PRE_INSTALL_SCRIPT
\ PRIVATE_HEADER \ PRIVATE_HEADER
\ PROCESSES
\ PROCESSORS \ PROCESSORS
\ PROCESSOR_AFFINITY \ PROCESSOR_AFFINITY
\ PROJECT_LABEL \ PROJECT_LABEL
@@ -290,7 +297,10 @@ syn keyword cmakeProperty contained
\ SKIP_AUTORCC \ SKIP_AUTORCC
\ SKIP_AUTOUIC \ SKIP_AUTOUIC
\ SKIP_BUILD_RPATH \ SKIP_BUILD_RPATH
\ SKIP_PRECOMPILE_HEADERS
\ SKIP_REGULAR_EXPRESSION
\ SKIP_RETURN_CODE \ SKIP_RETURN_CODE
\ SKIP_UNITY_BUILD_INCLUSION
\ SOURCES \ SOURCES
\ SOURCE_DIR \ SOURCE_DIR
\ SOVERSION \ SOVERSION
@@ -302,6 +312,7 @@ syn keyword cmakeProperty contained
\ SYMBOLIC \ SYMBOLIC
\ Swift_DEPENDENCIES_FILE \ Swift_DEPENDENCIES_FILE
\ Swift_DIAGNOSTICS_FILE \ Swift_DIAGNOSTICS_FILE
\ Swift_LANGUAGE_VERSION
\ Swift_MODULE_DIRECTORY \ Swift_MODULE_DIRECTORY
\ Swift_MODULE_NAME \ Swift_MODULE_NAME
\ TARGET_ARCHIVES_MAY_BE_SHARED_LIBS \ TARGET_ARCHIVES_MAY_BE_SHARED_LIBS
@@ -313,6 +324,10 @@ syn keyword cmakeProperty contained
\ TIMEOUT \ TIMEOUT
\ TIMEOUT_AFTER_MATCH \ TIMEOUT_AFTER_MATCH
\ TYPE \ TYPE
\ UNITY_BUILD
\ UNITY_BUILD_BATCH_SIZE
\ UNITY_BUILD_CODE_AFTER_INCLUDE
\ UNITY_BUILD_CODE_BEFORE_INCLUDE
\ USE_FOLDERS \ USE_FOLDERS
\ VALUE \ VALUE
\ VARIABLES \ VARIABLES
@@ -327,9 +342,11 @@ syn keyword cmakeProperty contained
\ VS_DEPLOYMENT_CONTENT \ VS_DEPLOYMENT_CONTENT
\ VS_DEPLOYMENT_LOCATION \ VS_DEPLOYMENT_LOCATION
\ VS_DESKTOP_EXTENSIONS_VERSION \ VS_DESKTOP_EXTENSIONS_VERSION
\ VS_DOTNET_DOCUMENTATION_FILE
\ VS_DOTNET_REFERENCES \ VS_DOTNET_REFERENCES
\ VS_DOTNET_REFERENCES_COPY_LOCAL \ VS_DOTNET_REFERENCES_COPY_LOCAL
\ VS_DOTNET_TARGET_FRAMEWORK_VERSION \ VS_DOTNET_TARGET_FRAMEWORK_VERSION
\ VS_DPI_AWARE
\ VS_GLOBAL_KEYWORD \ VS_GLOBAL_KEYWORD
\ VS_GLOBAL_PROJECT_TYPES \ VS_GLOBAL_PROJECT_TYPES
\ VS_GLOBAL_ROOTNAMESPACE \ VS_GLOBAL_ROOTNAMESPACE
@@ -340,6 +357,7 @@ syn keyword cmakeProperty contained
\ VS_KEYWORD \ VS_KEYWORD
\ VS_MOBILE_EXTENSIONS_VERSION \ VS_MOBILE_EXTENSIONS_VERSION
\ VS_NO_SOLUTION_DEPLOY \ VS_NO_SOLUTION_DEPLOY
\ VS_PACKAGE_REFERENCES
\ VS_PROJECT_IMPORT \ VS_PROJECT_IMPORT
\ VS_RESOURCE_GENERATOR \ VS_RESOURCE_GENERATOR
\ VS_SCC_AUXPATH \ VS_SCC_AUXPATH
@@ -379,6 +397,7 @@ syn keyword cmakeProperty contained
\ XCODE_SCHEME_ADDRESS_SANITIZER_USE_AFTER_RETURN \ XCODE_SCHEME_ADDRESS_SANITIZER_USE_AFTER_RETURN
\ XCODE_SCHEME_ARGUMENTS \ XCODE_SCHEME_ARGUMENTS
\ XCODE_SCHEME_DEBUG_AS_ROOT \ XCODE_SCHEME_DEBUG_AS_ROOT
\ XCODE_SCHEME_DEBUG_DOCUMENT_VERSIONING
\ XCODE_SCHEME_DISABLE_MAIN_THREAD_CHECKER \ XCODE_SCHEME_DISABLE_MAIN_THREAD_CHECKER
\ XCODE_SCHEME_DYNAMIC_LIBRARY_LOADS \ XCODE_SCHEME_DYNAMIC_LIBRARY_LOADS
\ XCODE_SCHEME_DYNAMIC_LINKER_API_USAGE \ XCODE_SCHEME_DYNAMIC_LINKER_API_USAGE
@@ -483,6 +502,9 @@ syn keyword cmakeVariable contained
\ CMAKE_ASM_LINKER_WRAPPER_FLAG \ CMAKE_ASM_LINKER_WRAPPER_FLAG
\ CMAKE_ASM_LINKER_WRAPPER_FLAG_SEP \ CMAKE_ASM_LINKER_WRAPPER_FLAG_SEP
\ CMAKE_ASM_LINK_EXECUTABLE \ CMAKE_ASM_LINK_EXECUTABLE
\ CMAKE_ASM_LINK_LIBRARY_FILE_FLAG
\ CMAKE_ASM_LINK_LIBRARY_FLAG
\ CMAKE_ASM_LINK_LIBRARY_SUFFIX
\ CMAKE_ASM_MASM \ CMAKE_ASM_MASM
\ CMAKE_ASM_MASM_ANDROID_TOOLCHAIN_MACHINE \ CMAKE_ASM_MASM_ANDROID_TOOLCHAIN_MACHINE
\ CMAKE_ASM_MASM_ANDROID_TOOLCHAIN_PREFIX \ CMAKE_ASM_MASM_ANDROID_TOOLCHAIN_PREFIX
@@ -533,6 +555,9 @@ syn keyword cmakeVariable contained
\ CMAKE_ASM_MASM_LINKER_WRAPPER_FLAG \ CMAKE_ASM_MASM_LINKER_WRAPPER_FLAG
\ CMAKE_ASM_MASM_LINKER_WRAPPER_FLAG_SEP \ CMAKE_ASM_MASM_LINKER_WRAPPER_FLAG_SEP
\ CMAKE_ASM_MASM_LINK_EXECUTABLE \ CMAKE_ASM_MASM_LINK_EXECUTABLE
\ CMAKE_ASM_MASM_LINK_LIBRARY_FILE_FLAG
\ CMAKE_ASM_MASM_LINK_LIBRARY_FLAG
\ CMAKE_ASM_MASM_LINK_LIBRARY_SUFFIX
\ CMAKE_ASM_MASM_OUTPUT_EXTENSION \ CMAKE_ASM_MASM_OUTPUT_EXTENSION
\ CMAKE_ASM_MASM_PLATFORM_ID \ CMAKE_ASM_MASM_PLATFORM_ID
\ CMAKE_ASM_MASM_SIMULATE_ID \ CMAKE_ASM_MASM_SIMULATE_ID
@@ -592,6 +617,9 @@ syn keyword cmakeVariable contained
\ CMAKE_ASM_NASM_LINKER_WRAPPER_FLAG \ CMAKE_ASM_NASM_LINKER_WRAPPER_FLAG
\ CMAKE_ASM_NASM_LINKER_WRAPPER_FLAG_SEP \ CMAKE_ASM_NASM_LINKER_WRAPPER_FLAG_SEP
\ CMAKE_ASM_NASM_LINK_EXECUTABLE \ CMAKE_ASM_NASM_LINK_EXECUTABLE
\ CMAKE_ASM_NASM_LINK_LIBRARY_FILE_FLAG
\ CMAKE_ASM_NASM_LINK_LIBRARY_FLAG
\ CMAKE_ASM_NASM_LINK_LIBRARY_SUFFIX
\ CMAKE_ASM_NASM_OUTPUT_EXTENSION \ CMAKE_ASM_NASM_OUTPUT_EXTENSION
\ CMAKE_ASM_NASM_PLATFORM_ID \ CMAKE_ASM_NASM_PLATFORM_ID
\ CMAKE_ASM_NASM_SIMULATE_ID \ CMAKE_ASM_NASM_SIMULATE_ID
@@ -618,6 +646,7 @@ syn keyword cmakeVariable contained
\ CMAKE_AUTOMOC_DEPEND_FILTERS \ CMAKE_AUTOMOC_DEPEND_FILTERS
\ CMAKE_AUTOMOC_MACRO_NAMES \ CMAKE_AUTOMOC_MACRO_NAMES
\ CMAKE_AUTOMOC_MOC_OPTIONS \ CMAKE_AUTOMOC_MOC_OPTIONS
\ CMAKE_AUTOMOC_PATH_PREFIX
\ CMAKE_AUTOMOC_RELAXED_MODE \ CMAKE_AUTOMOC_RELAXED_MODE
\ CMAKE_AUTORCC \ CMAKE_AUTORCC
\ CMAKE_AUTORCC_OPTIONS \ CMAKE_AUTORCC_OPTIONS
@@ -703,6 +732,9 @@ syn keyword cmakeVariable contained
\ CMAKE_CSharp_LINKER_WRAPPER_FLAG \ CMAKE_CSharp_LINKER_WRAPPER_FLAG
\ CMAKE_CSharp_LINKER_WRAPPER_FLAG_SEP \ CMAKE_CSharp_LINKER_WRAPPER_FLAG_SEP
\ CMAKE_CSharp_LINK_EXECUTABLE \ CMAKE_CSharp_LINK_EXECUTABLE
\ CMAKE_CSharp_LINK_LIBRARY_FILE_FLAG
\ CMAKE_CSharp_LINK_LIBRARY_FLAG
\ CMAKE_CSharp_LINK_LIBRARY_SUFFIX
\ CMAKE_CSharp_OUTPUT_EXTENSION \ CMAKE_CSharp_OUTPUT_EXTENSION
\ CMAKE_CSharp_PLATFORM_ID \ CMAKE_CSharp_PLATFORM_ID
\ CMAKE_CSharp_SIMULATE_ID \ CMAKE_CSharp_SIMULATE_ID
@@ -765,8 +797,12 @@ syn keyword cmakeVariable contained
\ CMAKE_CUDA_LINKER_WRAPPER_FLAG \ CMAKE_CUDA_LINKER_WRAPPER_FLAG
\ CMAKE_CUDA_LINKER_WRAPPER_FLAG_SEP \ CMAKE_CUDA_LINKER_WRAPPER_FLAG_SEP
\ CMAKE_CUDA_LINK_EXECUTABLE \ CMAKE_CUDA_LINK_EXECUTABLE
\ CMAKE_CUDA_LINK_LIBRARY_FILE_FLAG
\ CMAKE_CUDA_LINK_LIBRARY_FLAG
\ CMAKE_CUDA_LINK_LIBRARY_SUFFIX
\ CMAKE_CUDA_OUTPUT_EXTENSION \ CMAKE_CUDA_OUTPUT_EXTENSION
\ CMAKE_CUDA_PLATFORM_ID \ CMAKE_CUDA_PLATFORM_ID
\ CMAKE_CUDA_RESOLVE_DEVICE_SYMBOLS
\ CMAKE_CUDA_SEPARABLE_COMPILATION \ CMAKE_CUDA_SEPARABLE_COMPILATION
\ CMAKE_CUDA_SIMULATE_ID \ CMAKE_CUDA_SIMULATE_ID
\ CMAKE_CUDA_SIMULATE_VERSION \ CMAKE_CUDA_SIMULATE_VERSION
@@ -835,6 +871,9 @@ syn keyword cmakeVariable contained
\ CMAKE_CXX_LINKER_WRAPPER_FLAG \ CMAKE_CXX_LINKER_WRAPPER_FLAG
\ CMAKE_CXX_LINKER_WRAPPER_FLAG_SEP \ CMAKE_CXX_LINKER_WRAPPER_FLAG_SEP
\ CMAKE_CXX_LINK_EXECUTABLE \ CMAKE_CXX_LINK_EXECUTABLE
\ CMAKE_CXX_LINK_LIBRARY_FILE_FLAG
\ CMAKE_CXX_LINK_LIBRARY_FLAG
\ CMAKE_CXX_LINK_LIBRARY_SUFFIX
\ CMAKE_CXX_OUTPUT_EXTENSION \ CMAKE_CXX_OUTPUT_EXTENSION
\ CMAKE_CXX_PLATFORM_ID \ CMAKE_CXX_PLATFORM_ID
\ CMAKE_CXX_SIMULATE_ID \ CMAKE_CXX_SIMULATE_ID
@@ -897,6 +936,9 @@ syn keyword cmakeVariable contained
\ CMAKE_C_LINKER_WRAPPER_FLAG \ CMAKE_C_LINKER_WRAPPER_FLAG
\ CMAKE_C_LINKER_WRAPPER_FLAG_SEP \ CMAKE_C_LINKER_WRAPPER_FLAG_SEP
\ CMAKE_C_LINK_EXECUTABLE \ CMAKE_C_LINK_EXECUTABLE
\ CMAKE_C_LINK_LIBRARY_FILE_FLAG
\ CMAKE_C_LINK_LIBRARY_FLAG
\ CMAKE_C_LINK_LIBRARY_SUFFIX
\ CMAKE_C_OUTPUT_EXTENSION \ CMAKE_C_OUTPUT_EXTENSION
\ CMAKE_C_PLATFORM_ID \ CMAKE_C_PLATFORM_ID
\ CMAKE_C_SIMULATE_ID \ CMAKE_C_SIMULATE_ID
@@ -912,11 +954,13 @@ syn keyword cmakeVariable contained
\ CMAKE_DEBUG_TARGET_PROPERTIES \ CMAKE_DEBUG_TARGET_PROPERTIES
\ CMAKE_DEPENDS_IN_PROJECT_ONLY \ CMAKE_DEPENDS_IN_PROJECT_ONLY
\ CMAKE_DIRECTORY_LABELS \ CMAKE_DIRECTORY_LABELS
\ CMAKE_DISABLE_PRECOMPILE_HEADERS
\ CMAKE_DL_LIBS \ CMAKE_DL_LIBS
\ CMAKE_DOTNET_TARGET_FRAMEWORK_VERSION \ CMAKE_DOTNET_TARGET_FRAMEWORK_VERSION
\ CMAKE_ECLIPSE_GENERATE_LINKED_RESOURCES \ CMAKE_ECLIPSE_GENERATE_LINKED_RESOURCES
\ CMAKE_ECLIPSE_GENERATE_SOURCE_PROJECT \ CMAKE_ECLIPSE_GENERATE_SOURCE_PROJECT
\ CMAKE_ECLIPSE_MAKE_ARGUMENTS \ CMAKE_ECLIPSE_MAKE_ARGUMENTS
\ CMAKE_ECLIPSE_RESOURCE_ENCODING
\ CMAKE_ECLIPSE_VERSION \ CMAKE_ECLIPSE_VERSION
\ CMAKE_EDIT_COMMAND \ CMAKE_EDIT_COMMAND
\ CMAKE_ENABLE_EXPORTS \ CMAKE_ENABLE_EXPORTS
@@ -950,6 +994,12 @@ syn keyword cmakeVariable contained
\ CMAKE_FIND_ROOT_PATH_MODE_LIBRARY \ CMAKE_FIND_ROOT_PATH_MODE_LIBRARY
\ CMAKE_FIND_ROOT_PATH_MODE_PACKAGE \ CMAKE_FIND_ROOT_PATH_MODE_PACKAGE
\ CMAKE_FIND_ROOT_PATH_MODE_PROGRAM \ CMAKE_FIND_ROOT_PATH_MODE_PROGRAM
\ CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH
\ CMAKE_FIND_USE_CMAKE_PATH
\ CMAKE_FIND_USE_CMAKE_SYSTEM_PATH
\ CMAKE_FIND_USE_PACKAGE_REGISTRY
\ CMAKE_FIND_USE_PACKAGE_ROOT_PATH
\ CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH
\ CMAKE_FOLDER \ CMAKE_FOLDER
\ CMAKE_FRAMEWORK \ CMAKE_FRAMEWORK
\ CMAKE_FRAMEWORK_PATH \ CMAKE_FRAMEWORK_PATH
@@ -1004,6 +1054,9 @@ syn keyword cmakeVariable contained
\ CMAKE_Fortran_LINKER_WRAPPER_FLAG \ CMAKE_Fortran_LINKER_WRAPPER_FLAG
\ CMAKE_Fortran_LINKER_WRAPPER_FLAG_SEP \ CMAKE_Fortran_LINKER_WRAPPER_FLAG_SEP
\ CMAKE_Fortran_LINK_EXECUTABLE \ CMAKE_Fortran_LINK_EXECUTABLE
\ CMAKE_Fortran_LINK_LIBRARY_FILE_FLAG
\ CMAKE_Fortran_LINK_LIBRARY_FLAG
\ CMAKE_Fortran_LINK_LIBRARY_SUFFIX
\ CMAKE_Fortran_MODDIR_DEFAULT \ CMAKE_Fortran_MODDIR_DEFAULT
\ CMAKE_Fortran_MODDIR_FLAG \ CMAKE_Fortran_MODDIR_FLAG
\ CMAKE_Fortran_MODOUT_FLAG \ CMAKE_Fortran_MODOUT_FLAG
@@ -1050,6 +1103,7 @@ syn keyword cmakeVariable contained
\ CMAKE_INSTALL_NAME_DIR \ CMAKE_INSTALL_NAME_DIR
\ CMAKE_INSTALL_PREFIX \ CMAKE_INSTALL_PREFIX
\ CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT \ CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT
\ CMAKE_INSTALL_REMOVE_ENVIRONMENT_RPATH
\ CMAKE_INSTALL_RPATH \ CMAKE_INSTALL_RPATH
\ CMAKE_INSTALL_RPATH_USE_LINK_PATH \ CMAKE_INSTALL_RPATH_USE_LINK_PATH
\ CMAKE_INTERNAL_PLATFORM_ABI \ CMAKE_INTERNAL_PLATFORM_ABI
@@ -1108,6 +1162,9 @@ syn keyword cmakeVariable contained
\ CMAKE_Java_LINKER_WRAPPER_FLAG \ CMAKE_Java_LINKER_WRAPPER_FLAG
\ CMAKE_Java_LINKER_WRAPPER_FLAG_SEP \ CMAKE_Java_LINKER_WRAPPER_FLAG_SEP
\ CMAKE_Java_LINK_EXECUTABLE \ CMAKE_Java_LINK_EXECUTABLE
\ CMAKE_Java_LINK_LIBRARY_FILE_FLAG
\ CMAKE_Java_LINK_LIBRARY_FLAG
\ CMAKE_Java_LINK_LIBRARY_SUFFIX
\ CMAKE_Java_OUTPUT_EXTENSION \ CMAKE_Java_OUTPUT_EXTENSION
\ CMAKE_Java_PLATFORM_ID \ CMAKE_Java_PLATFORM_ID
\ CMAKE_Java_SIMULATE_ID \ CMAKE_Java_SIMULATE_ID
@@ -1138,6 +1195,10 @@ syn keyword cmakeVariable contained
\ CMAKE_MAKE_PROGRAM \ CMAKE_MAKE_PROGRAM
\ CMAKE_MATCH_COUNT \ CMAKE_MATCH_COUNT
\ CMAKE_MAXIMUM_RECURSION_DEPTH \ CMAKE_MAXIMUM_RECURSION_DEPTH
\ CMAKE_MESSAGE_CONTEXT
\ CMAKE_MESSAGE_CONTEXT_SHOW
\ CMAKE_MESSAGE_INDENT
\ CMAKE_MESSAGE_LOG_LEVEL
\ CMAKE_MFC_FLAG \ CMAKE_MFC_FLAG
\ CMAKE_MINIMUM_REQUIRED_VERSION \ CMAKE_MINIMUM_REQUIRED_VERSION
\ CMAKE_MINOR_VERSION \ CMAKE_MINOR_VERSION
@@ -1223,6 +1284,9 @@ syn keyword cmakeVariable contained
\ CMAKE_RC_LINKER_WRAPPER_FLAG \ CMAKE_RC_LINKER_WRAPPER_FLAG
\ CMAKE_RC_LINKER_WRAPPER_FLAG_SEP \ CMAKE_RC_LINKER_WRAPPER_FLAG_SEP
\ CMAKE_RC_LINK_EXECUTABLE \ CMAKE_RC_LINK_EXECUTABLE
\ CMAKE_RC_LINK_LIBRARY_FILE_FLAG
\ CMAKE_RC_LINK_LIBRARY_FLAG
\ CMAKE_RC_LINK_LIBRARY_SUFFIX
\ CMAKE_RC_OUTPUT_EXTENSION \ CMAKE_RC_OUTPUT_EXTENSION
\ CMAKE_RC_PLATFORM_ID \ CMAKE_RC_PLATFORM_ID
\ CMAKE_RC_SIMULATE_ID \ CMAKE_RC_SIMULATE_ID
@@ -1322,7 +1386,11 @@ syn keyword cmakeVariable contained
\ CMAKE_Swift_LINKER_WRAPPER_FLAG \ CMAKE_Swift_LINKER_WRAPPER_FLAG
\ CMAKE_Swift_LINKER_WRAPPER_FLAG_SEP \ CMAKE_Swift_LINKER_WRAPPER_FLAG_SEP
\ CMAKE_Swift_LINK_EXECUTABLE \ CMAKE_Swift_LINK_EXECUTABLE
\ CMAKE_Swift_LINK_LIBRARY_FILE_FLAG
\ CMAKE_Swift_LINK_LIBRARY_FLAG
\ CMAKE_Swift_LINK_LIBRARY_SUFFIX
\ CMAKE_Swift_MODULE_DIRECTORY \ CMAKE_Swift_MODULE_DIRECTORY
\ CMAKE_Swift_NUM_THREADS
\ CMAKE_Swift_OUTPUT_EXTENSION \ CMAKE_Swift_OUTPUT_EXTENSION
\ CMAKE_Swift_PLATFORM_ID \ CMAKE_Swift_PLATFORM_ID
\ CMAKE_Swift_SIMULATE_ID \ CMAKE_Swift_SIMULATE_ID
@@ -1337,6 +1405,8 @@ syn keyword cmakeVariable contained
\ CMAKE_TRY_COMPILE_PLATFORM_VARIABLES \ CMAKE_TRY_COMPILE_PLATFORM_VARIABLES
\ CMAKE_TRY_COMPILE_TARGET_TYPE \ CMAKE_TRY_COMPILE_TARGET_TYPE
\ CMAKE_TWEAK_VERSION \ CMAKE_TWEAK_VERSION
\ CMAKE_UNITY_BUILD
\ CMAKE_UNITY_BUILD_BATCH_SIZE
\ CMAKE_USER_MAKE_RULES_OVERRIDE \ CMAKE_USER_MAKE_RULES_OVERRIDE
\ CMAKE_USER_MAKE_RULES_OVERRIDE_ASM \ CMAKE_USER_MAKE_RULES_OVERRIDE_ASM
\ CMAKE_USER_MAKE_RULES_OVERRIDE_ASM_MASM \ CMAKE_USER_MAKE_RULES_OVERRIDE_ASM_MASM
@@ -1365,6 +1435,7 @@ syn keyword cmakeVariable contained
\ CMAKE_VS_PLATFORM_NAME_DEFAULT \ CMAKE_VS_PLATFORM_NAME_DEFAULT
\ CMAKE_VS_PLATFORM_TOOLSET \ CMAKE_VS_PLATFORM_TOOLSET
\ CMAKE_VS_PLATFORM_TOOLSET_CUDA \ CMAKE_VS_PLATFORM_TOOLSET_CUDA
\ CMAKE_VS_PLATFORM_TOOLSET_CUDA_CUSTOM_DIR
\ CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE \ CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE
\ CMAKE_VS_PLATFORM_TOOLSET_VERSION \ CMAKE_VS_PLATFORM_TOOLSET_VERSION
\ CMAKE_VS_SDK_EXCLUDE_DIRECTORIES \ CMAKE_VS_SDK_EXCLUDE_DIRECTORIES
@@ -1385,9 +1456,11 @@ syn keyword cmakeVariable contained
\ CMAKE_XCODE_PLATFORM_TOOLSET \ CMAKE_XCODE_PLATFORM_TOOLSET
\ CMAKE_XCODE_SCHEME_ADDRESS_SANITIZER \ CMAKE_XCODE_SCHEME_ADDRESS_SANITIZER
\ CMAKE_XCODE_SCHEME_ADDRESS_SANITIZER_USE_AFTER_RETURN \ CMAKE_XCODE_SCHEME_ADDRESS_SANITIZER_USE_AFTER_RETURN
\ CMAKE_XCODE_SCHEME_DEBUG_DOCUMENT_VERSIONING
\ CMAKE_XCODE_SCHEME_DISABLE_MAIN_THREAD_CHECKER \ CMAKE_XCODE_SCHEME_DISABLE_MAIN_THREAD_CHECKER
\ CMAKE_XCODE_SCHEME_DYNAMIC_LIBRARY_LOADS \ CMAKE_XCODE_SCHEME_DYNAMIC_LIBRARY_LOADS
\ CMAKE_XCODE_SCHEME_DYNAMIC_LINKER_API_USAGE \ CMAKE_XCODE_SCHEME_DYNAMIC_LINKER_API_USAGE
\ CMAKE_XCODE_SCHEME_ENVIRONMENT
\ CMAKE_XCODE_SCHEME_GUARD_MALLOC \ CMAKE_XCODE_SCHEME_GUARD_MALLOC
\ CMAKE_XCODE_SCHEME_MAIN_THREAD_CHECKER_STOP \ CMAKE_XCODE_SCHEME_MAIN_THREAD_CHECKER_STOP
\ CMAKE_XCODE_SCHEME_MALLOC_GUARD_EDGES \ CMAKE_XCODE_SCHEME_MALLOC_GUARD_EDGES
@@ -1403,7 +1476,6 @@ syn keyword cmakeVariable contained
\ CPACK_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION \ CPACK_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION
\ CPACK_INCLUDE_TOPLEVEL_DIRECTORY \ CPACK_INCLUDE_TOPLEVEL_DIRECTORY
\ CPACK_INSTALL_DEFAULT_DIRECTORY_PERMISSIONS \ CPACK_INSTALL_DEFAULT_DIRECTORY_PERMISSIONS
\ CPACK_INSTALL_SCRIPT
\ CPACK_PACKAGING_INSTALL_PREFIX \ CPACK_PACKAGING_INSTALL_PREFIX
\ CPACK_SET_DESTDIR \ CPACK_SET_DESTDIR
\ CPACK_WARN_ON_ABSOLUTE_INSTALL_DESTINATION \ CPACK_WARN_ON_ABSOLUTE_INSTALL_DESTINATION
@@ -1480,6 +1552,283 @@ syn keyword cmakeVariable contained
\ CTEST_UPDATE_VERSION_OVERRIDE \ CTEST_UPDATE_VERSION_OVERRIDE
\ CTEST_USE_LAUNCHERS \ CTEST_USE_LAUNCHERS
\ CYGWIN \ CYGWIN
\ DOXYGEN_ABBREVIATE_BRIEF
\ DOXYGEN_ALIASES
\ DOXYGEN_ALLEXTERNALS
\ DOXYGEN_ALLOW_UNICODE_NAMES
\ DOXYGEN_ALPHABETICAL_INDEX
\ DOXYGEN_ALWAYS_DETAILED_SEC
\ DOXYGEN_AUTOLINK_SUPPORT
\ DOXYGEN_BINARY_TOC
\ DOXYGEN_BRIEF_MEMBER_DESC
\ DOXYGEN_BUILTIN_STL_SUPPORT
\ DOXYGEN_CALLER_GRAPH
\ DOXYGEN_CALL_GRAPH
\ DOXYGEN_CASE_SENSE_NAMES
\ DOXYGEN_CHM_FILE
\ DOXYGEN_CHM_INDEX_ENCODING
\ DOXYGEN_CITE_BIB_FILES
\ DOXYGEN_CLANG_ASSISTED_PARSING
\ DOXYGEN_CLANG_DATABASE_PATH
\ DOXYGEN_CLANG_OPTIONS
\ DOXYGEN_CLASS_DIAGRAMS
\ DOXYGEN_CLASS_GRAPH
\ DOXYGEN_COLLABORATION_GRAPH
\ DOXYGEN_COLS_IN_ALPHA_INDEX
\ DOXYGEN_COMPACT_LATEX
\ DOXYGEN_COMPACT_RTF
\ DOXYGEN_CPP_CLI_SUPPORT
\ DOXYGEN_CREATE_SUBDIRS
\ DOXYGEN_DIAFILE_DIRS
\ DOXYGEN_DIA_PATH
\ DOXYGEN_DIRECTORY_GRAPH
\ DOXYGEN_DISABLE_INDEX
\ DOXYGEN_DISTRIBUTE_GROUP_DOC
\ DOXYGEN_DOCBOOK_OUTPUT
\ DOXYGEN_DOCBOOK_PROGRAMLISTING
\ DOXYGEN_DOCSET_BUNDLE_ID
\ DOXYGEN_DOCSET_FEEDNAME
\ DOXYGEN_DOCSET_PUBLISHER_ID
\ DOXYGEN_DOCSET_PUBLISHER_NAME
\ DOXYGEN_DOTFILE_DIRS
\ DOXYGEN_DOT_CLEANUP
\ DOXYGEN_DOT_FONTNAME
\ DOXYGEN_DOT_FONTPATH
\ DOXYGEN_DOT_FONTSIZE
\ DOXYGEN_DOT_GRAPH_MAX_NODES
\ DOXYGEN_DOT_IMAGE_FORMAT
\ DOXYGEN_DOT_MULTI_TARGETS
\ DOXYGEN_DOT_NUM_THREADS
\ DOXYGEN_DOT_PATH
\ DOXYGEN_DOT_TRANSPARENT
\ DOXYGEN_DOXYFILE_ENCODING
\ DOXYGEN_ECLIPSE_DOC_ID
\ DOXYGEN_ENABLED_SECTIONS
\ DOXYGEN_ENABLE_PREPROCESSING
\ DOXYGEN_ENUM_VALUES_PER_LINE
\ DOXYGEN_EXAMPLE_PATH
\ DOXYGEN_EXAMPLE_PATTERNS
\ DOXYGEN_EXAMPLE_RECURSIVE
\ DOXYGEN_EXCLUDE
\ DOXYGEN_EXCLUDE_PATTERNS
\ DOXYGEN_EXCLUDE_SYMBOLS
\ DOXYGEN_EXCLUDE_SYMLINKS
\ DOXYGEN_EXPAND_AS_DEFINED
\ DOXYGEN_EXPAND_ONLY_PREDEF
\ DOXYGEN_EXTENSION_MAPPING
\ DOXYGEN_EXTERNAL_GROUPS
\ DOXYGEN_EXTERNAL_PAGES
\ DOXYGEN_EXTERNAL_SEARCH
\ DOXYGEN_EXTERNAL_SEARCH_ID
\ DOXYGEN_EXTRACT_ALL
\ DOXYGEN_EXTRACT_ANON_NSPACES
\ DOXYGEN_EXTRACT_LOCAL_CLASSES
\ DOXYGEN_EXTRACT_LOCAL_METHODS
\ DOXYGEN_EXTRACT_PACKAGE
\ DOXYGEN_EXTRACT_PRIVATE
\ DOXYGEN_EXTRACT_PRIV_VIRTUAL
\ DOXYGEN_EXTRACT_STATIC
\ DOXYGEN_EXTRA_PACKAGES
\ DOXYGEN_EXTRA_SEARCH_MAPPINGS
\ DOXYGEN_EXT_LINKS_IN_WINDOW
\ DOXYGEN_FILE_PATTERNS
\ DOXYGEN_FILE_VERSION_FILTER
\ DOXYGEN_FILTER_PATTERNS
\ DOXYGEN_FILTER_SOURCE_FILES
\ DOXYGEN_FILTER_SOURCE_PATTERNS
\ DOXYGEN_FORCE_LOCAL_INCLUDES
\ DOXYGEN_FORMULA_FONTSIZE
\ DOXYGEN_FORMULA_TRANSPARENT
\ DOXYGEN_FULL_PATH_NAMES
\ DOXYGEN_GENERATE_AUTOGEN_DEF
\ DOXYGEN_GENERATE_BUGLIST
\ DOXYGEN_GENERATE_CHI
\ DOXYGEN_GENERATE_DEPRECATEDLIST
\ DOXYGEN_GENERATE_DOCBOOK
\ DOXYGEN_GENERATE_DOCSET
\ DOXYGEN_GENERATE_ECLIPSEHELP
\ DOXYGEN_GENERATE_HTML
\ DOXYGEN_GENERATE_HTMLHELP
\ DOXYGEN_GENERATE_LATEX
\ DOXYGEN_GENERATE_LEGEND
\ DOXYGEN_GENERATE_MAN
\ DOXYGEN_GENERATE_PERLMOD
\ DOXYGEN_GENERATE_QHP
\ DOXYGEN_GENERATE_RTF
\ DOXYGEN_GENERATE_TAGFILE
\ DOXYGEN_GENERATE_TESTLIST
\ DOXYGEN_GENERATE_TODOLIST
\ DOXYGEN_GENERATE_TREEVIEW
\ DOXYGEN_GENERATE_XML
\ DOXYGEN_GRAPHICAL_HIERARCHY
\ DOXYGEN_GROUP_GRAPHS
\ DOXYGEN_GROUP_NESTED_COMPOUNDS
\ DOXYGEN_HAVE_DOT
\ DOXYGEN_HHC_LOCATION
\ DOXYGEN_HIDE_COMPOUND_REFERENCE
\ DOXYGEN_HIDE_FRIEND_COMPOUNDS
\ DOXYGEN_HIDE_IN_BODY_DOCS
\ DOXYGEN_HIDE_SCOPE_NAMES
\ DOXYGEN_HIDE_UNDOC_CLASSES
\ DOXYGEN_HIDE_UNDOC_MEMBERS
\ DOXYGEN_HIDE_UNDOC_RELATIONS
\ DOXYGEN_HTML_COLORSTYLE_GAMMA
\ DOXYGEN_HTML_COLORSTYLE_HUE
\ DOXYGEN_HTML_COLORSTYLE_SAT
\ DOXYGEN_HTML_DYNAMIC_MENUS
\ DOXYGEN_HTML_DYNAMIC_SECTIONS
\ DOXYGEN_HTML_EXTRA_FILES
\ DOXYGEN_HTML_EXTRA_STYLESHEET
\ DOXYGEN_HTML_FILE_EXTENSION
\ DOXYGEN_HTML_FOOTER
\ DOXYGEN_HTML_HEADER
\ DOXYGEN_HTML_INDEX_NUM_ENTRIES
\ DOXYGEN_HTML_OUTPUT
\ DOXYGEN_HTML_STYLESHEET
\ DOXYGEN_HTML_TIMESTAMP
\ DOXYGEN_IDL_PROPERTY_SUPPORT
\ DOXYGEN_IGNORE_PREFIX
\ DOXYGEN_IMAGE_PATH
\ DOXYGEN_INCLUDED_BY_GRAPH
\ DOXYGEN_INCLUDE_FILE_PATTERNS
\ DOXYGEN_INCLUDE_GRAPH
\ DOXYGEN_INCLUDE_PATH
\ DOXYGEN_INHERIT_DOCS
\ DOXYGEN_INLINE_GROUPED_CLASSES
\ DOXYGEN_INLINE_INFO
\ DOXYGEN_INLINE_INHERITED_MEMB
\ DOXYGEN_INLINE_SIMPLE_STRUCTS
\ DOXYGEN_INLINE_SOURCES
\ DOXYGEN_INPUT
\ DOXYGEN_INPUT_ENCODING
\ DOXYGEN_INPUT_FILTER
\ DOXYGEN_INTERACTIVE_SVG
\ DOXYGEN_INTERNAL_DOCS
\ DOXYGEN_JAVADOC_AUTOBRIEF
\ DOXYGEN_JAVADOC_BANNER
\ DOXYGEN_LATEX_BATCHMODE
\ DOXYGEN_LATEX_BIB_STYLE
\ DOXYGEN_LATEX_CMD_NAME
\ DOXYGEN_LATEX_EMOJI_DIRECTORY
\ DOXYGEN_LATEX_EXTRA_FILES
\ DOXYGEN_LATEX_EXTRA_STYLESHEET
\ DOXYGEN_LATEX_FOOTER
\ DOXYGEN_LATEX_HEADER
\ DOXYGEN_LATEX_HIDE_INDICES
\ DOXYGEN_LATEX_MAKEINDEX_CMD
\ DOXYGEN_LATEX_OUTPUT
\ DOXYGEN_LATEX_SOURCE_CODE
\ DOXYGEN_LATEX_TIMESTAMP
\ DOXYGEN_LAYOUT_FILE
\ DOXYGEN_LOOKUP_CACHE_SIZE
\ DOXYGEN_MACRO_EXPANSION
\ DOXYGEN_MAKEINDEX_CMD_NAME
\ DOXYGEN_MAN_EXTENSION
\ DOXYGEN_MAN_LINKS
\ DOXYGEN_MAN_OUTPUT
\ DOXYGEN_MAN_SUBDIR
\ DOXYGEN_MARKDOWN_SUPPORT
\ DOXYGEN_MATHJAX_CODEFILE
\ DOXYGEN_MATHJAX_EXTENSIONS
\ DOXYGEN_MATHJAX_FORMAT
\ DOXYGEN_MATHJAX_RELPATH
\ DOXYGEN_MAX_DOT_GRAPH_DEPTH
\ DOXYGEN_MAX_INITIALIZER_LINES
\ DOXYGEN_MSCFILE_DIRS
\ DOXYGEN_MULTILINE_CPP_IS_BRIEF
\ DOXYGEN_OPTIMIZE_FOR_FORTRAN
\ DOXYGEN_OPTIMIZE_OUTPUT_FOR_C
\ DOXYGEN_OPTIMIZE_OUTPUT_JAVA
\ DOXYGEN_OPTIMIZE_OUTPUT_SLICE
\ DOXYGEN_OPTIMIZE_OUTPUT_VHDL
\ DOXYGEN_OUTPUT_DIRECTORY
\ DOXYGEN_OUTPUT_LANGUAGE
\ DOXYGEN_OUTPUT_TEXT_DIRECTION
\ DOXYGEN_PAPER_TYPE
\ DOXYGEN_PDF_HYPERLINKS
\ DOXYGEN_PERLMOD_LATEX
\ DOXYGEN_PERLMOD_MAKEVAR_PREFIX
\ DOXYGEN_PERLMOD_PRETTY
\ DOXYGEN_PLANTUML_CFG_FILE
\ DOXYGEN_PLANTUML_INCLUDE_PATH
\ DOXYGEN_PLANTUML_JAR_PATH
\ DOXYGEN_PREDEFINED
\ DOXYGEN_PROJECT_BRIEF
\ DOXYGEN_PROJECT_LOGO
\ DOXYGEN_PROJECT_NAME
\ DOXYGEN_PROJECT_NUMBER
\ DOXYGEN_QCH_FILE
\ DOXYGEN_QHG_LOCATION
\ DOXYGEN_QHP_CUST_FILTER_ATTRS
\ DOXYGEN_QHP_CUST_FILTER_NAME
\ DOXYGEN_QHP_NAMESPACE
\ DOXYGEN_QHP_SECT_FILTER_ATTRS
\ DOXYGEN_QHP_VIRTUAL_FOLDER
\ DOXYGEN_QT_AUTOBRIEF
\ DOXYGEN_QUIET
\ DOXYGEN_RECURSIVE
\ DOXYGEN_REFERENCED_BY_RELATION
\ DOXYGEN_REFERENCES_LINK_SOURCE
\ DOXYGEN_REFERENCES_RELATION
\ DOXYGEN_REPEAT_BRIEF
\ DOXYGEN_RTF_EXTENSIONS_FILE
\ DOXYGEN_RTF_HYPERLINKS
\ DOXYGEN_RTF_OUTPUT
\ DOXYGEN_RTF_SOURCE_CODE
\ DOXYGEN_RTF_STYLESHEET_FILE
\ DOXYGEN_SEARCHDATA_FILE
\ DOXYGEN_SEARCHENGINE
\ DOXYGEN_SEARCHENGINE_URL
\ DOXYGEN_SEARCH_INCLUDES
\ DOXYGEN_SEPARATE_MEMBER_PAGES
\ DOXYGEN_SERVER_BASED_SEARCH
\ DOXYGEN_SHORT_NAMES
\ DOXYGEN_SHOW_FILES
\ DOXYGEN_SHOW_GROUPED_MEMB_INC
\ DOXYGEN_SHOW_INCLUDE_FILES
\ DOXYGEN_SHOW_NAMESPACES
\ DOXYGEN_SHOW_USED_FILES
\ DOXYGEN_SIP_SUPPORT
\ DOXYGEN_SKIP_FUNCTION_MACROS
\ DOXYGEN_SORT_BRIEF_DOCS
\ DOXYGEN_SORT_BY_SCOPE_NAME
\ DOXYGEN_SORT_GROUP_NAMES
\ DOXYGEN_SORT_MEMBERS_CTORS_1ST
\ DOXYGEN_SORT_MEMBER_DOCS
\ DOXYGEN_SOURCE_BROWSER
\ DOXYGEN_SOURCE_TOOLTIPS
\ DOXYGEN_STRICT_PROTO_MATCHING
\ DOXYGEN_STRIP_CODE_COMMENTS
\ DOXYGEN_STRIP_FROM_INC_PATH
\ DOXYGEN_STRIP_FROM_PATH
\ DOXYGEN_SUBGROUPING
\ DOXYGEN_TAB_SIZE
\ DOXYGEN_TAGFILES
\ DOXYGEN_TCL_SUBST
\ DOXYGEN_TEMPLATE_RELATIONS
\ DOXYGEN_TOC_EXPAND
\ DOXYGEN_TOC_INCLUDE_HEADINGS
\ DOXYGEN_TREEVIEW_WIDTH
\ DOXYGEN_TYPEDEF_HIDES_STRUCT
\ DOXYGEN_UML_LIMIT_NUM_FIELDS
\ DOXYGEN_UML_LOOK
\ DOXYGEN_USE_HTAGS
\ DOXYGEN_USE_MATHJAX
\ DOXYGEN_USE_MDFILE_AS_MAINPAGE
\ DOXYGEN_USE_PDFLATEX
\ DOXYGEN_VERBATIM_HEADERS
\ DOXYGEN_VERBATIM_VARS
\ DOXYGEN_VERSION
\ DOXYGEN_WARNINGS
\ DOXYGEN_WARN_AS_ERROR
\ DOXYGEN_WARN_FORMAT
\ DOXYGEN_WARN_IF_DOC_ERROR
\ DOXYGEN_WARN_IF_UNDOCUMENTED
\ DOXYGEN_WARN_LOGFILE
\ DOXYGEN_WARN_NO_PARAMDOC
\ DOXYGEN_XML_NS_MEMB_FILE_SCOPE
\ DOXYGEN_XML_OUTPUT
\ DOXYGEN_XML_PROGRAMLISTING
\ ENV \ ENV
\ EXECUTABLE_OUTPUT_PATH \ EXECUTABLE_OUTPUT_PATH
\ GHS-MULTI \ GHS-MULTI
@@ -1658,6 +2007,7 @@ syn keyword cmakeKWadd_custom_command contained
\ MAIN_DEPENDENCY \ MAIN_DEPENDENCY
\ NOT \ NOT
\ OUTPUT \ OUTPUT
\ PATH
\ POST_BUILD \ POST_BUILD
\ PRE_BUILD \ PRE_BUILD
\ PRE_LINK \ PRE_LINK
@@ -1682,7 +2032,9 @@ syn keyword cmakeKWadd_custom_target contained
\ JOB_POOL \ JOB_POOL
\ JOB_POOLS \ JOB_POOLS
\ JOIN \ JOIN
\ PATH
\ SOURCES \ SOURCES
\ TARGET_FILE
\ TARGET_PROPERTY \ TARGET_PROPERTY
\ USES_TERMINAL \ USES_TERMINAL
\ VERBATIM \ VERBATIM
@@ -1762,11 +2114,13 @@ syn keyword cmakeKWadd_subdirectory contained
syn keyword cmakeKWadd_test contained syn keyword cmakeKWadd_test contained
\ BUILD_TESTING \ BUILD_TESTING
\ COMMAND \ COMMAND
\ COMMAND_EXPAND_LISTS
\ CONFIGURATIONS \ CONFIGURATIONS
\ FAIL_REGULAR_EXPRESSION \ FAIL_REGULAR_EXPRESSION
\ NAME \ NAME
\ OFF \ OFF
\ PASS_REGULAR_EXPRESSION \ PASS_REGULAR_EXPRESSION
\ SKIP_REGULAR_EXPRESSION
\ TARGET_FILE \ TARGET_FILE
\ WILL_FAIL \ WILL_FAIL
\ WORKING_DIRECTORY \ WORKING_DIRECTORY
@@ -1921,6 +2275,7 @@ syn keyword cmakeKWctest_run_script contained
syn keyword cmakeKWctest_start contained syn keyword cmakeKWctest_start contained
\ APPEND \ APPEND
\ GROUP
\ QUIET \ QUIET
\ TAG \ TAG
\ TRACK \ TRACK
@@ -1952,6 +2307,7 @@ syn keyword cmakeKWctest_test contained
\ EXCLUDE_FIXTURE_CLEANUP \ EXCLUDE_FIXTURE_CLEANUP
\ EXCLUDE_FIXTURE_SETUP \ EXCLUDE_FIXTURE_SETUP
\ EXCLUDE_LABEL \ EXCLUDE_LABEL
\ HARDWARE_SPEC_FILE
\ INCLUDE \ INCLUDE
\ INCLUDE_LABEL \ INCLUDE_LABEL
\ OFF \ OFF
@@ -1991,9 +2347,17 @@ syn keyword cmakeKWdefine_property contained
\ TEST \ TEST
\ VARIABLE \ VARIABLE
syn keyword cmakeKWdoxygen_add_docs contained
\ ALL
\ COMMENT
\ USE_STAMP_FILE
\ WORKING_DIRECTORY
syn keyword cmakeKWenable_language contained syn keyword cmakeKWenable_language contained
\ ASM \ ASM
\ CUDA \ CUDA
\ OBJC
\ OBJCXX
\ OPTIONAL \ OPTIONAL
syn keyword cmakeKWenable_testing contained syn keyword cmakeKWenable_testing contained
@@ -2057,20 +2421,30 @@ syn keyword cmakeKWfile contained
\ ALGO \ ALGO
\ APPEND \ APPEND
\ ASCII \ ASCII
\ BUNDLE_EXECTUBLE
\ BUNDLE_EXECUTABLE
\ CMAKE_GET_RUNTIME_DEPENDENCIES_COMMAND
\ CMAKE_GET_RUNTIME_DEPENDENCIES_PLATFORM
\ CMAKE_GET_RUNTIME_DEPENDENCIES_TOOL
\ CMAKE_TLS_CAINFO \ CMAKE_TLS_CAINFO
\ CMAKE_TLS_VERIFY \ CMAKE_TLS_VERIFY
\ CODE
\ CONDITION \ CONDITION
\ CONFIG \ CONFIG
\ CONFIGURE_DEPENDS \ CONFIGURE_DEPENDS
\ CONFLICTING_DEPENDENCIES_PREFIX
\ CONFLICTING_DEPENDENICES_PREFIX
\ CONTENT \ CONTENT
\ COPY \ COPY
\ COPY_ON_ERROR \ COPY_ON_ERROR
\ CREATE_LINK \ CREATE_LINK
\ DESTINATION \ DESTINATION
\ DIRECTORIES
\ DIRECTORY_PERMISSIONS \ DIRECTORY_PERMISSIONS
\ DLL
\ DOWNLOAD \ DOWNLOAD
\ ENCODING \ ENCODING
\ EXCLUDE \ EXECUTABLES
\ EXPECTED_HASH \ EXPECTED_HASH
\ FILES_MATCHING \ FILES_MATCHING
\ FILE_PERMISSIONS \ FILE_PERMISSIONS
@@ -2078,6 +2452,7 @@ syn keyword cmakeKWfile contained
\ FOLLOW_SYMLINK_CHAIN \ FOLLOW_SYMLINK_CHAIN
\ FUNCTION \ FUNCTION
\ GENERATE \ GENERATE
\ GET_RUNTIME_DEPENDENCIES
\ GLOB \ GLOB
\ GLOB_RECURSE \ GLOB_RECURSE
\ GUARD \ GUARD
@@ -2091,6 +2466,7 @@ syn keyword cmakeKWfile contained
\ LENGTH_MAXIMUM \ LENGTH_MAXIMUM
\ LENGTH_MINIMUM \ LENGTH_MINIMUM
\ LF \ LF
\ LIBRARIES
\ LIMIT \ LIMIT
\ LIMIT_COUNT \ LIMIT_COUNT
\ LIMIT_INPUT \ LIMIT_INPUT
@@ -2099,6 +2475,8 @@ syn keyword cmakeKWfile contained
\ LOCK \ LOCK
\ LOG \ LOG
\ MAKE_DIRECTORY \ MAKE_DIRECTORY
\ MODULES
\ MYLIBRARY
\ NETRC \ NETRC
\ NETRC_FILE \ NETRC_FILE
\ NEWLINE_CONSUME \ NEWLINE_CONSUME
@@ -2110,6 +2488,10 @@ syn keyword cmakeKWfile contained
\ OPTIONAL \ OPTIONAL
\ OUTPUT \ OUTPUT
\ PATTERN \ PATTERN
\ POST_EXCLUDE_REGEXES
\ POST_INCLUDE_REGEXES
\ PRE_EXCLUDE_REGEXES
\ PRE_INCLUDE_REGEXES
\ PROCESS \ PROCESS
\ READ \ READ
\ READ_SYMLINK \ READ_SYMLINK
@@ -2120,11 +2502,17 @@ syn keyword cmakeKWfile contained
\ REMOVE_RECURSE \ REMOVE_RECURSE
\ RENAME \ RENAME
\ REQUIRED \ REQUIRED
\ RESOLVED_DEPENDENCIES_VAR
\ RESULT \ RESULT
\ RESULT_VARIABLE \ RESULT_VARIABLE
\ RPATH
\ RUNPATH
\ SCRIPT
\ SHARED
\ SHOW_PROGRESS \ SHOW_PROGRESS
\ SIZE \ SIZE
\ SSL \ SSL
\ STATIC
\ STATUS \ STATUS
\ STRINGS \ STRINGS
\ SYMBOLIC \ SYMBOLIC
@@ -2135,6 +2523,7 @@ syn keyword cmakeKWfile contained
\ TOUCH_NOCREATE \ TOUCH_NOCREATE
\ TO_CMAKE_PATH \ TO_CMAKE_PATH
\ TO_NATIVE_PATH \ TO_NATIVE_PATH
\ UNRESOLVED_DEPENDENCIES_VAR
\ UPLOAD \ UPLOAD
\ URL \ URL
\ USERPWD \ USERPWD
@@ -2142,11 +2531,13 @@ syn keyword cmakeKWfile contained
\ UTC \ UTC
\ UTF \ UTF
\ WRITE \ WRITE
\ _FILENAMES
syn keyword cmakeKWfind_file contained syn keyword cmakeKWfind_file contained
\ CMAKE_FIND_ROOT_PATH_BOTH \ CMAKE_FIND_ROOT_PATH_BOTH
\ DOC \ DOC
\ DVAR \ DVAR
\ FALSE
\ HINTS \ HINTS
\ INCLUDE \ INCLUDE
\ NAMES \ NAMES
@@ -2166,8 +2557,9 @@ syn keyword cmakeKWfind_library contained
\ CMAKE_FIND_ROOT_PATH_BOTH \ CMAKE_FIND_ROOT_PATH_BOTH
\ DOC \ DOC
\ DVAR \ DVAR
\ FALSE
\ HINTS \ HINTS
\ LIB \ INCLUDE
\ NAMES \ NAMES
\ NAMES_PER_DIR \ NAMES_PER_DIR
\ NO_CMAKE_ENVIRONMENT_PATH \ NO_CMAKE_ENVIRONMENT_PATH
@@ -2193,6 +2585,7 @@ syn keyword cmakeKWfind_package contained
\ DEC \ DEC
\ DVAR \ DVAR
\ EXACT \ EXACT
\ FALSE
\ FRAMEWORK \ FRAMEWORK
\ HINTS \ HINTS
\ MODULE \ MODULE
@@ -2244,6 +2637,7 @@ syn keyword cmakeKWfind_path contained
\ CMAKE_FIND_ROOT_PATH_BOTH \ CMAKE_FIND_ROOT_PATH_BOTH
\ DOC \ DOC
\ DVAR \ DVAR
\ FALSE
\ HINTS \ HINTS
\ INCLUDE \ INCLUDE
\ NAMES \ NAMES
@@ -2263,6 +2657,7 @@ syn keyword cmakeKWfind_program contained
\ CMAKE_FIND_ROOT_PATH_BOTH \ CMAKE_FIND_ROOT_PATH_BOTH
\ DOC \ DOC
\ DVAR \ DVAR
\ FALSE
\ HINTS \ HINTS
\ NAMES \ NAMES
\ NAMES_PER_DIR \ NAMES_PER_DIR
@@ -2413,6 +2808,7 @@ syn keyword cmakeKWinclude_guard contained
syn keyword cmakeKWinstall contained syn keyword cmakeKWinstall contained
\ AFTER \ AFTER
\ AIX
\ APT \ APT
\ ARCHIVE \ ARCHIVE
\ BEFORE \ BEFORE
@@ -2446,6 +2842,7 @@ syn keyword cmakeKWinstall contained
\ DIRECTORY_PERMISSIONS \ DIRECTORY_PERMISSIONS
\ DLL \ DLL
\ DOC \ DOC
\ ENABLE_EXPORTS
\ EXCLUDE_FROM_ALL \ EXCLUDE_FROM_ALL
\ EXPORT \ EXPORT
\ EXPORT_ANDROID_MK \ EXPORT_ANDROID_MK
@@ -2627,12 +3024,14 @@ syn keyword cmakeKWproject contained
\ LANGUAGES \ LANGUAGES
\ NAME \ NAME
\ NONE \ NONE
\ OBJC
\ OBJCXX
\ PROJECT \ PROJECT
\ VERSION \ VERSION
\ _BINARY_DIR \ _BINARY_DIR
\ _DESCRIPTION \ _DESCRIPTION
\ _HOMEPAGE_URL \ _HOMEPAGE_URL
\ _INCLUDE \ _INCLUDE_BEFORE
\ _SOURCE_DIR \ _SOURCE_DIR
\ _VERSION \ _VERSION
\ _VERSION_MAJOR \ _VERSION_MAJOR
@@ -2855,6 +3254,22 @@ syn keyword cmakeKWtarget_link_options contained
\ _LINKER_WRAPPER_FLAG \ _LINKER_WRAPPER_FLAG
\ _LINKER_WRAPPER_FLAG_SEP \ _LINKER_WRAPPER_FLAG_SEP
syn keyword cmakeKWtarget_precompile_headers contained
\ ALIAS
\ COMPILE_LANGUAGE
\ DISABLE_PRECOMPILE_HEADERS
\ FI
\ GCC
\ IMPORTED
\ INTERFACE
\ INTERFACE_PRECOMPILE_HEADERS
\ PRECOMPILE_HEADERS
\ PRECOMPILE_HEADERS_REUSE_FROM
\ PRIVATE
\ PUBLIC
\ REUSE_FROM
\ SKIP_PRECOMPILE_HEADERS
syn keyword cmakeKWtarget_sources contained syn keyword cmakeKWtarget_sources contained
\ ALIAS \ ALIAS
\ IMPORTED \ IMPORTED
@@ -3007,6 +3422,10 @@ syn keyword cmakeGeneratorExpressions contained
\ MAP_IMPORTED_CONFIG_ \ MAP_IMPORTED_CONFIG_
\ NO \ NO
\ NOT \ NOT
\ OBJCXX_COMPILER_ID
\ OBJCXX_COMPILER_VERSION
\ OBJC_COMPILER_ID
\ OBJC_COMPILER_VERSION
\ OFF \ OFF
\ OLD_COMPILER \ OLD_COMPILER
\ OUTPUT_NAME \ OUTPUT_NAME
@@ -3157,6 +3576,7 @@ syn keyword cmakeCommand
\ target_link_directories \ target_link_directories
\ target_link_libraries \ target_link_libraries
\ target_link_options \ target_link_options
\ target_precompile_headers
\ target_sources \ target_sources
\ try_compile \ try_compile
\ try_run \ try_run
@@ -3252,6 +3672,7 @@ hi def link cmakeKWctest_test ModeMsg
hi def link cmakeKWctest_update ModeMsg hi def link cmakeKWctest_update ModeMsg
hi def link cmakeKWctest_upload ModeMsg hi def link cmakeKWctest_upload ModeMsg
hi def link cmakeKWdefine_property ModeMsg hi def link cmakeKWdefine_property ModeMsg
hi def link cmakeKWdoxygen_add_docs ModeMsg
hi def link cmakeKWenable_language ModeMsg hi def link cmakeKWenable_language ModeMsg
hi def link cmakeKWenable_testing ModeMsg hi def link cmakeKWenable_testing ModeMsg
hi def link cmakeKWexec_program ModeMsg hi def link cmakeKWexec_program ModeMsg
@@ -3313,6 +3734,7 @@ hi def link cmakeKWtarget_include_directories ModeMsg
hi def link cmakeKWtarget_link_directories ModeMsg hi def link cmakeKWtarget_link_directories ModeMsg
hi def link cmakeKWtarget_link_libraries ModeMsg hi def link cmakeKWtarget_link_libraries ModeMsg
hi def link cmakeKWtarget_link_options ModeMsg hi def link cmakeKWtarget_link_options ModeMsg
hi def link cmakeKWtarget_precompile_headers ModeMsg
hi def link cmakeKWtarget_sources ModeMsg hi def link cmakeKWtarget_sources ModeMsg
hi def link cmakeKWtry_compile ModeMsg hi def link cmakeKWtry_compile ModeMsg
hi def link cmakeKWtry_run ModeMsg hi def link cmakeKWtry_run ModeMsg

View File

@@ -9,7 +9,7 @@ command -nargs=+ HiLink hi def link <args>
"Dollar sign is permitted anywhere in an identifier "Dollar sign is permitted anywhere in an identifier
setlocal iskeyword-=$ setlocal iskeyword-=$
if main_syntax == 'typescript' || main_syntax == 'typescript.tsx' if main_syntax == 'typescript' || main_syntax == 'typescriptreact'
setlocal iskeyword+=$ setlocal iskeyword+=$
" syntax cluster htmlJavaScript contains=TOP " syntax cluster htmlJavaScript contains=TOP
endif endif
@@ -155,6 +155,7 @@ if exists("did_typescript_hilink")
HiLink typescriptTypeReference Identifier HiLink typescriptTypeReference Identifier
HiLink typescriptConstructor Keyword HiLink typescriptConstructor Keyword
HiLink typescriptDecorator Special HiLink typescriptDecorator Special
HiLink typescriptAssertType Keyword
highlight link typeScript NONE highlight link typeScript NONE

View File

@@ -121,7 +121,7 @@ syn match crystalPredefinedConstant "\%(\%(\.\@<!\.\)\@<!\|::\)\_s*\zs\%(crystal
" Normal Regular Expression " Normal Regular Expression
syn region crystalRegexp matchgroup=crystalRegexpDelimiter start="\%(\%(^\|\<\%(and\|or\|while\|until\|unless\|if\|elsif\|ifdef\|when\|not\|then\|else\)\|[;\~=!|&(,[<>?:*+-]\)\s*\)\@<=/" end="/[iomxneus]*" skip="\\\\\|\\/" contains=@crystalRegexpSpecial fold syn region crystalRegexp matchgroup=crystalRegexpDelimiter start="\%(\%(^\|\<\%(and\|or\|while\|until\|unless\|if\|elsif\|ifdef\|when\|not\|then\|else\)\|[;\~=!|&(,[<>?:*+-]\)\s*\)\@<=/" end="/[iomxneus]*" skip="\\\\\|\\/" contains=@crystalRegexpSpecial fold
syn region crystalRegexp matchgroup=crystalRegexpDelimiter start="\%(\h\k*\s\+\)\@<=/[ \t=]\@!" end="/[iomxneus]*" skip="\\\\\|\\/" contains=@crystalRegexpSpecial fold syn region crystalRegexp matchgroup=crystalRegexpDelimiter start="\%(\h\k*\s\+\)\@<=/[ \t=/]\@!" end="/[iomxneus]*" skip="\\\\\|\\/" contains=@crystalRegexpSpecial fold
" Generalized Regular Expression " Generalized Regular Expression
syn region crystalRegexp matchgroup=crystalRegexpDelimiter start="%r\z([~`!@#$%^&*_\-+=|\:;"',.? /]\)" end="\z1[iomxneus]*" skip="\\\\\|\\\z1" contains=@crystalRegexpSpecial fold syn region crystalRegexp matchgroup=crystalRegexpDelimiter start="%r\z([~`!@#$%^&*_\-+=|\:;"',.? /]\)" end="\z1[iomxneus]*" skip="\\\\\|\\\z1" contains=@crystalRegexpSpecial fold
@@ -290,7 +290,7 @@ if !exists('g:crystal_no_special_methods')
syn match crystalInclude "\<include\>[?!]\@!" display syn match crystalInclude "\<include\>[?!]\@!" display
syn keyword crystalInclude extend require syn keyword crystalInclude extend require
syn keyword crystalKeyword caller typeof pointerof sizeof instance_sizeof syn keyword crystalKeyword caller typeof pointerof sizeof instance_sizeof
syn match crystalRecord "\<record\>[?!]\@!" display syn match crystalRecord "\<record\%(\s\+\u\w*\)\@=" display
endif endif
" Macro " Macro

View File

@@ -53,6 +53,11 @@ syntax match dartMetadata "@\([_$a-zA-Z][_$a-zA-Z0-9]*\.\)*[_$a-zA-Z][_$a
" Numbers " Numbers
syntax match dartNumber "\<\d\+\(\.\d\+\)\=\>" syntax match dartNumber "\<\d\+\(\.\d\+\)\=\>"
" User Types
if !exists('dart_highlight_types') || dart_highlight_types
syntax match dartTypeName "\<[A-Z]\w*\>\|\<_[A-Z]\w*\>"
endif
" Core libraries " Core libraries
if !exists('dart_corelib_highlight') || dart_corelib_highlight if !exists('dart_corelib_highlight') || dart_corelib_highlight
syntax keyword dartCoreClasses BidirectionalIterator Comparable DateTime syntax keyword dartCoreClasses BidirectionalIterator Comparable DateTime
@@ -118,6 +123,7 @@ highlight default link dartTypedef Typedef
highlight default link dartTodo Todo highlight default link dartTodo Todo
highlight default link dartKeyword Keyword highlight default link dartKeyword Keyword
highlight default link dartType Type highlight default link dartType Type
highlight default link dartTypeName Type
highlight default link dartInterpolation PreProc highlight default link dartInterpolation PreProc
highlight default link dartDocLink SpecialComment highlight default link dartDocLink SpecialComment
highlight default link dartSpecialChar SpecialChar highlight default link dartSpecialChar SpecialChar

View File

@@ -52,7 +52,7 @@ syn keyword elixirBoolean true false nil
syn match elixirVariable '@[a-z]\w*' syn match elixirVariable '@[a-z]\w*'
syn match elixirVariable '&\d\+' syn match elixirVariable '&\d\+'
syn keyword elixirPseudoVariable __FILE__ __DIR__ __MODULE__ __ENV__ __CALLER__ syn keyword elixirPseudoVariable __FILE__ __DIR__ __MODULE__ __ENV__ __CALLER__ __STACKTRACE__
syn match elixirNumber '\<-\?\d\(_\?\d\)*\(\.[^[:space:][:digit:]]\@!\(_\?\d\)*\)\?\([eE][-+]\?\d\(_\?\d\)*\)\?\>' syn match elixirNumber '\<-\?\d\(_\?\d\)*\(\.[^[:space:][:digit:]]\@!\(_\?\d\)*\)\?\([eE][-+]\?\d\(_\?\d\)*\)\?\>'
syn match elixirNumber '\<-\?0[xX][0-9A-Fa-f]\+\>' syn match elixirNumber '\<-\?0[xX][0-9A-Fa-f]\+\>'

33
syntax/embeddedpuppet.vim Normal file
View File

@@ -0,0 +1,33 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1
" Vim syntax plugin
" Language: embedded puppet
" Maintainer: Gabriel Filion <gabster@lelutin.ca>
" URL: https://github.com/rodjek/vim-puppet
" Last Change: 2019-09-01
" quit when a syntax file was already loaded {{{1
if exists("b:current_syntax")
finish
endif
runtime! syntax/sh.vim
unlet! b:current_syntax
syn include @puppetTop syntax/puppet.vim
syn cluster ePuppetRegions contains=ePuppetBlock,ePuppetExpression,ePuppetComment
syn region ePuppetBlock matchgroup=ePuppetDelimiter start="<%%\@!-\=" end="[=-]\=%\@<!%>" contains=@puppetTop containedin=ALLBUT,@ePuppetRegions keepend
syn region ePuppetExpression matchgroup=ePuppetDelimiter start="<%=\{1,4}" end="[=-]\=%\@<!%>" contains=@puppetTop containedin=ALLBUT,@ePuppetRegions keepend
syn region ePuppetComment matchgroup=ePuppetDelimiter start="<%-\=#" end="[=-]\=%\@<!%>" contains=puppetTodo,@Spell containedin=ALLBUT,@ePuppetRegions keepend
" Define the default highlighting.
hi def link ePuppetDelimiter PreProc
hi def link ePuppetComment Comment
let b:current_syntax = "embeddedpuppet"
endif

6
syntax/flow.vim Normal file
View File

@@ -0,0 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1
runtime syntax/javascript.vim
runtime extras/flow.vim
endif

View File

@@ -34,7 +34,7 @@ syn match gitDiffRemoved "\[-.*-\]" contained containedin=gitDiff
syn match gitKeyword /^\%(object\|type\|tag\|commit\|tree\|parent\|encoding\)\>/ contained containedin=gitHead nextgroup=gitHash,gitType skipwhite syn match gitKeyword /^\%(object\|type\|tag\|commit\|tree\|parent\|encoding\)\>/ contained containedin=gitHead nextgroup=gitHash,gitType skipwhite
syn match gitKeyword /^\%(tag\>\|ref:\)/ contained containedin=gitHead nextgroup=gitReference skipwhite syn match gitKeyword /^\%(tag\>\|ref:\)/ contained containedin=gitHead nextgroup=gitReference skipwhite
syn match gitKeyword /^Merge:/ contained containedin=gitHead nextgroup=gitHashAbbrev skipwhite syn match gitKeyword /^Merge:/ contained containedin=gitHead nextgroup=gitHashAbbrev skipwhite
syn match gitMode /^\d\{6\}/ contained containedin=gitHead nextgroup=gitType,gitHash skipwhite syn match gitMode /^\d\{6\}\>/ contained containedin=gitHead nextgroup=gitType,gitHash skipwhite
syn match gitIdentityKeyword /^\%(author\|committer\|tagger\)\>/ contained containedin=gitHead nextgroup=gitIdentity skipwhite syn match gitIdentityKeyword /^\%(author\|committer\|tagger\)\>/ contained containedin=gitHead nextgroup=gitIdentity skipwhite
syn match gitIdentityHeader /^\%(Author\|Commit\|Tagger\):/ contained containedin=gitHead nextgroup=gitIdentity skipwhite syn match gitIdentityHeader /^\%(Author\|Commit\|Tagger\):/ contained containedin=gitHead nextgroup=gitIdentity skipwhite
syn match gitDateHeader /^\%(AuthorDate\|CommitDate\|Date\):/ contained containedin=gitHead nextgroup=gitDate skipwhite syn match gitDateHeader /^\%(AuthorDate\|CommitDate\|Date\):/ contained containedin=gitHead nextgroup=gitDate skipwhite

View File

@@ -164,15 +164,21 @@ endif
syn match goSingleDecl /\%(import\|var\|const\) [^(]\@=/ contains=goImport,goVar,goConst syn match goSingleDecl /\%(import\|var\|const\) [^(]\@=/ contains=goImport,goVar,goConst
" Integers " Integers
syn match goDecimalInt "\<-\=\d\+\%([Ee][-+]\=\d\+\)\=\>" syn match goDecimalInt "\<-\=\(0\|[1-9]\d*\)\%([Ee][-+]\=\d\+\)\=\>"
syn match goHexadecimalInt "\<-\=0[xX]\x\+\>" syn match goHexadecimalInt "\<-\=0[xX]\x\+\>"
syn match goHexadecimalError "\<-\=0[xX]\x*[^ \t0-9A-Fa-f]\S*\>"
syn match goOctalInt "\<-\=0\o\+\>" syn match goOctalInt "\<-\=0\o\+\>"
syn match goOctalError "\<-\=0\o*[89]\d*\>" syn match goOctalError "\<-\=0[XxBb\]]\@!\o*[^ \t0-7]\S*\>"
syn match goBinaryInt "\<-\=0[bB][01]\+\>"
syn match goBinaryError "\<-\=0[bB][01]*[^ \t01]\S*\>"
hi def link goDecimalInt Integer hi def link goDecimalInt Integer
hi def link goHexadecimalInt Integer hi def link goHexadecimalInt Integer
hi def link goHexadecimalError Error
hi def link goOctalInt Integer hi def link goOctalInt Integer
hi def link goOctalError Error hi def link goOctalError Error
hi def link goBinaryInt Integer
hi def link goBinaryError Error
hi def link Integer Number hi def link Integer Number
" Floating point " Floating point
@@ -384,6 +390,13 @@ hi def link goCoverageNormalText Comment
function! s:hi() function! s:hi()
hi def link goSameId Search hi def link goSameId Search
hi def link goDiagnosticError SpellBad
hi def link goDiagnosticWarning SpellRare
hi def link goDeclsFzfKeyword Keyword
hi def link goDeclsFzfFunction Function
hi def link goDeclsFzfSpecialComment SpecialComment
hi def link goDeclsFzfComment Comment
" :GoCoverage commands " :GoCoverage commands
hi def goCoverageCovered ctermfg=green guifg=#A6E22E hi def goCoverageCovered ctermfg=green guifg=#A6E22E

View File

@@ -11,17 +11,20 @@ syntax case match
" match keywords " match keywords
syntax keyword gomodModule module syntax keyword gomodModule module
syntax keyword gomodGo go contained
syntax keyword gomodRequire require syntax keyword gomodRequire require
syntax keyword gomodExclude exclude syntax keyword gomodExclude exclude
syntax keyword gomodReplace replace syntax keyword gomodReplace replace
" require, exclude and replace can be also grouped into block " require, exclude, replace, and go can be also grouped into block
syntax region gomodRequire start='require (' end=')' transparent contains=gomodRequire,gomodVersion syntax region gomodRequire start='require (' end=')' transparent contains=gomodRequire,gomodVersion
syntax region gomodExclude start='exclude (' end=')' transparent contains=gomodExclude,gomodVersion syntax region gomodExclude start='exclude (' end=')' transparent contains=gomodExclude,gomodVersion
syntax region gomodReplace start='replace (' end=')' transparent contains=gomodReplace,gomodVersion syntax region gomodReplace start='replace (' end=')' transparent contains=gomodReplace,gomodVersion
syntax match gomodGo '^go .*$' transparent contains=gomodGo,gomodGoVersion
" set highlights " set highlights
highlight default link gomodModule Keyword highlight default link gomodModule Keyword
highlight default link gomodGo Keyword
highlight default link gomodRequire Keyword highlight default link gomodRequire Keyword
highlight default link gomodExclude Keyword highlight default link gomodExclude Keyword
highlight default link gomodReplace Keyword highlight default link gomodReplace Keyword
@@ -38,6 +41,10 @@ highlight default link gomodString String
syntax match gomodReplaceOperator "\v\=\>" syntax match gomodReplaceOperator "\v\=\>"
highlight default link gomodReplaceOperator Operator highlight default link gomodReplaceOperator Operator
" match go versions
syntax match gomodGoVersion "1\.\d\+" contained
highlight default link gomodGoVersion Identifier
" highlight versions: " highlight versions:
" * vX.Y.Z-pre " * vX.Y.Z-pre

View File

@@ -112,7 +112,7 @@ syntax keyword jsAsyncKeyword async await
syntax match jsSwitchColon contained /::\@!/ skipwhite skipempty nextgroup=jsSwitchBlock syntax match jsSwitchColon contained /::\@!/ skipwhite skipempty nextgroup=jsSwitchBlock
" Keywords " Keywords
syntax keyword jsGlobalObjects Array Boolean Date Function Iterator Number Object Symbol Map WeakMap Set WeakSet RegExp String Proxy Promise Buffer ParallelArray ArrayBuffer DataView Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray JSON Math console document window Intl Collator DateTimeFormat NumberFormat fetch syntax keyword jsGlobalObjects ArrayBuffer Array BigInt64Array BigUint64Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray Boolean Buffer Collator DataView Date DateTimeFormat Function Intl Iterator JSON Map Set WeakMap WeakSet Math Number NumberFormat Object ParallelArray Promise Proxy Reflect RegExp String Symbol Uint8ClampedArray WebAssembly console document fetch window
syntax keyword jsGlobalNodeObjects module exports global process __dirname __filename syntax keyword jsGlobalNodeObjects module exports global process __dirname __filename
syntax match jsGlobalNodeObjects /\<require\>/ containedin=jsFuncCall syntax match jsGlobalNodeObjects /\<require\>/ containedin=jsFuncCall
syntax keyword jsExceptions Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError syntax keyword jsExceptions Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError
@@ -152,7 +152,7 @@ syntax region jsSwitchBlock contained matchgroup=jsSwitchBraces s
syntax region jsRepeatBlock contained matchgroup=jsRepeatBraces start=/{/ end=/}/ contains=@jsAll,jsBlock extend fold syntax region jsRepeatBlock contained matchgroup=jsRepeatBraces start=/{/ end=/}/ contains=@jsAll,jsBlock extend fold
syntax region jsDestructuringBlock contained matchgroup=jsDestructuringBraces start=/{/ end=/}/ contains=jsDestructuringProperty,jsDestructuringAssignment,jsDestructuringNoise,jsDestructuringPropertyComputed,jsSpreadExpression,jsComment nextgroup=jsFlowDefinition extend fold syntax region jsDestructuringBlock contained matchgroup=jsDestructuringBraces start=/{/ end=/}/ contains=jsDestructuringProperty,jsDestructuringAssignment,jsDestructuringNoise,jsDestructuringPropertyComputed,jsSpreadExpression,jsComment nextgroup=jsFlowDefinition extend fold
syntax region jsDestructuringArray contained matchgroup=jsDestructuringBraces start=/\[/ end=/\]/ contains=jsDestructuringPropertyValue,jsDestructuringNoise,jsDestructuringProperty,jsSpreadExpression,jsDestructuringBlock,jsDestructuringArray,jsComment nextgroup=jsFlowDefinition extend fold syntax region jsDestructuringArray contained matchgroup=jsDestructuringBraces start=/\[/ end=/\]/ contains=jsDestructuringPropertyValue,jsDestructuringNoise,jsDestructuringProperty,jsSpreadExpression,jsDestructuringBlock,jsDestructuringArray,jsComment nextgroup=jsFlowDefinition extend fold
syntax region jsObject contained matchgroup=jsObjectBraces start=/{/ end=/}/ contains=jsObjectKey,jsObjectKeyString,jsObjectKeyComputed,jsObjectShorthandProp,jsObjectSeparator,jsObjectFuncName,jsObjectMethodType,jsGenerator,jsComment,jsObjectStringKey,jsSpreadExpression,jsDecorator,jsAsyncKeyword extend fold syntax region jsObject contained matchgroup=jsObjectBraces start=/{/ end=/}/ contains=jsObjectKey,jsObjectKeyString,jsObjectKeyComputed,jsObjectShorthandProp,jsObjectSeparator,jsObjectFuncName,jsObjectMethodType,jsGenerator,jsComment,jsObjectStringKey,jsSpreadExpression,jsDecorator,jsAsyncKeyword,jsTemplateString extend fold
syntax region jsBlock matchgroup=jsBraces start=/{/ end=/}/ contains=@jsAll,jsSpreadExpression extend fold syntax region jsBlock matchgroup=jsBraces start=/{/ end=/}/ contains=@jsAll,jsSpreadExpression extend fold
syntax region jsModuleGroup contained matchgroup=jsModuleBraces start=/{/ end=/}/ contains=jsModuleKeyword,jsModuleComma,jsModuleAs,jsComment,jsFlowTypeKeyword skipwhite skipempty nextgroup=jsFrom fold syntax region jsModuleGroup contained matchgroup=jsModuleBraces start=/{/ end=/}/ contains=jsModuleKeyword,jsModuleComma,jsModuleAs,jsComment,jsFlowTypeKeyword skipwhite skipempty nextgroup=jsFrom fold
syntax region jsSpreadExpression contained matchgroup=jsSpreadOperator start=/\.\.\./ end=/[,}\]]\@=/ contains=@jsExpression syntax region jsSpreadExpression contained matchgroup=jsSpreadOperator start=/\.\.\./ end=/[,}\]]\@=/ contains=@jsExpression

View File

@@ -2,6 +2,7 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'meson') == -1
" Vim syntax file " Vim syntax file
" Language: Meson " Language: Meson
" License: VIM License
" Maintainer: Nirbheek Chauhan <nirbheek.chauhan@gmail.com> " Maintainer: Nirbheek Chauhan <nirbheek.chauhan@gmail.com>
" Last Change: 2016 Dec 7 " Last Change: 2016 Dec 7
" Credits: Zvezdan Petkovic <zpetkovic@acm.org> " Credits: Zvezdan Petkovic <zpetkovic@acm.org>
@@ -29,7 +30,7 @@ endif
" We need nocompatible mode in order to continue lines with backslashes. " We need nocompatible mode in order to continue lines with backslashes.
" Original setting will be restored. " Original setting will be restored.
let s:cpo_save = &cpo let s:cpo_save = &cpo
setlocal cpo&vim set cpo&vim
" http://mesonbuild.com/Syntax.html " http://mesonbuild.com/Syntax.html
syn keyword mesonConditional elif else if endif syn keyword mesonConditional elif else if endif

View File

@@ -20,11 +20,8 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1
" can be distinguished from begin/end, which is used for indentation, " can be distinguished from begin/end, which is used for indentation,
" and folding. (David Baelde) " and folding. (David Baelde)
" For version 5.x: Clear all syntax items " Quit when a syntax file was already loaded
" For version 6.x: Quit when a syntax file was already loaded if exists("b:current_syntax") && b:current_syntax == "ocaml"
if version < 600
syntax clear
elseif exists("b:current_syntax") && b:current_syntax == "ocaml"
finish finish
endif endif
@@ -131,7 +128,7 @@ syn region ocamlSig matchgroup=ocamlSigEncl start="\<sig\>" matchgroup=ocamlSi
syn region ocamlModSpec matchgroup=ocamlKeyword start="\<module\>" matchgroup=ocamlModule end="\<\u\(\w\|'\)*\>" contained contains=@ocamlAllErrs,ocamlComment skipwhite skipempty nextgroup=ocamlModTRWith,ocamlMPRestr syn region ocamlModSpec matchgroup=ocamlKeyword start="\<module\>" matchgroup=ocamlModule end="\<\u\(\w\|'\)*\>" contained contains=@ocamlAllErrs,ocamlComment skipwhite skipempty nextgroup=ocamlModTRWith,ocamlMPRestr
" "open" " "open"
syn region ocamlNone matchgroup=ocamlKeyword start="\<open\>" matchgroup=ocamlModule end="\<\u\(\w\|'\)*\( *\. *\u\(\w\|'\)*\)*\>" contains=@ocamlAllErrs,ocamlComment syn match ocamlKeyword "\<open\>" skipwhite skipempty nextgroup=ocamlFullMod
" "include" " "include"
syn match ocamlKeyword "\<include\>" skipwhite skipempty nextgroup=ocamlModParam,ocamlFullMod syn match ocamlKeyword "\<include\>" skipwhite skipempty nextgroup=ocamlModParam,ocamlFullMod
@@ -192,7 +189,7 @@ endif
syn keyword ocamlType array bool char exn float format format4 syn keyword ocamlType array bool char exn float format format4
syn keyword ocamlType int int32 int64 lazy_t list nativeint option syn keyword ocamlType int int32 int64 lazy_t list nativeint option
syn keyword ocamlType string unit syn keyword ocamlType bytes string unit
syn match ocamlConstructor "(\s*)" syn match ocamlConstructor "(\s*)"
syn match ocamlConstructor "\[\s*\]" syn match ocamlConstructor "\[\s*\]"
@@ -233,7 +230,18 @@ syn match ocamlStar "*"
syn match ocamlAngle "<" syn match ocamlAngle "<"
syn match ocamlAngle ">" syn match ocamlAngle ">"
" Custom indexing operators: " Custom indexing operators:
syn match ocamlIndexingOp "\.[~?!:|&$%=>@^/*+-][~?!.:|&$%<=>@^*/+-]*\(()\|\[]\|{}\)\(<-\)\?" syn region ocamlIndexing matchgroup=ocamlIndexingOp
\ start="\.[~?!:|&$%=>@^/*+-][~?!.:|&$%<=>@^*/+-]*\_s*("
\ end=")\(\_s*<-\)\?"
\ contains=ALLBUT,@ocamlContained,ocamlParenErr
syn region ocamlIndexing matchgroup=ocamlIndexingOp
\ start="\.[~?!:|&$%=>@^/*+-][~?!.:|&$%<=>@^*/+-]*\_s*\["
\ end="]\(\_s*<-\)\?"
\ contains=ALLBUT,@ocamlContained,ocamlBrackErr
syn region ocamlIndexing matchgroup=ocamlIndexingOp
\ start="\.[~?!:|&$%=>@^/*+-][~?!.:|&$%<=>@^*/+-]*\_s*{"
\ end="}\(\_s*<-\)\?"
\ contains=ALLBUT,@ocamlContained,ocamlBraceErr
" Extension operators (has to be declared before regular infix operators): " Extension operators (has to be declared before regular infix operators):
syn match ocamlExtensionOp "#[#~?!.:|&$%<=>@^*/+-]\+" syn match ocamlExtensionOp "#[#~?!.:|&$%<=>@^*/+-]\+"
" Infix and prefix operators: " Infix and prefix operators:
@@ -291,103 +299,91 @@ syn sync match ocamlSigSync grouphere ocamlSig "\<sig\>"
syn sync match ocamlSigSync groupthere ocamlSig "\<end\>" syn sync match ocamlSigSync groupthere ocamlSig "\<end\>"
" Define the default highlighting. " Define the default highlighting.
" For version 5.7 and earlier: only when not done already
" For version 5.8 and later: only when an item doesn't have highlighting yet
if version >= 508 || !exists("did_ocaml_syntax_inits")
if version < 508
let did_ocaml_syntax_inits = 1
command -nargs=+ HiLink hi link <args>
else
command -nargs=+ HiLink hi def link <args>
endif
HiLink ocamlBraceErr Error hi def link ocamlBraceErr Error
HiLink ocamlBrackErr Error hi def link ocamlBrackErr Error
HiLink ocamlParenErr Error hi def link ocamlParenErr Error
HiLink ocamlArrErr Error hi def link ocamlArrErr Error
HiLink ocamlCommentErr Error hi def link ocamlCommentErr Error
HiLink ocamlCountErr Error hi def link ocamlCountErr Error
HiLink ocamlDoErr Error hi def link ocamlDoErr Error
HiLink ocamlDoneErr Error hi def link ocamlDoneErr Error
HiLink ocamlEndErr Error hi def link ocamlEndErr Error
HiLink ocamlThenErr Error hi def link ocamlThenErr Error
HiLink ocamlCharErr Error hi def link ocamlCharErr Error
HiLink ocamlErr Error hi def link ocamlErr Error
HiLink ocamlComment Comment hi def link ocamlComment Comment
HiLink ocamlModPath Include hi def link ocamlModPath Include
HiLink ocamlObject Include hi def link ocamlObject Include
HiLink ocamlModule Include hi def link ocamlModule Include
HiLink ocamlModParam1 Include hi def link ocamlModParam1 Include
HiLink ocamlGenMod Include hi def link ocamlGenMod Include
HiLink ocamlModType Include hi def link ocamlModType Include
HiLink ocamlMPRestr3 Include hi def link ocamlMPRestr3 Include
HiLink ocamlFullMod Include hi def link ocamlFullMod Include
HiLink ocamlFuncWith Include hi def link ocamlFuncWith Include
HiLink ocamlModParam Include hi def link ocamlModParam Include
HiLink ocamlModTypeRestr Include hi def link ocamlModTypeRestr Include
HiLink ocamlWith Include hi def link ocamlWith Include
HiLink ocamlMTDef Include hi def link ocamlMTDef Include
HiLink ocamlSigEncl ocamlModule hi def link ocamlSigEncl ocamlModule
HiLink ocamlStructEncl ocamlModule hi def link ocamlStructEncl ocamlModule
HiLink ocamlScript Include hi def link ocamlScript Include
HiLink ocamlConstructor Constant hi def link ocamlConstructor Constant
HiLink ocamlVal Keyword hi def link ocamlVal Keyword
HiLink ocamlModPreRHS Keyword hi def link ocamlModPreRHS Keyword
HiLink ocamlMPRestr2 Keyword hi def link ocamlMPRestr2 Keyword
HiLink ocamlKeyword Keyword hi def link ocamlKeyword Keyword
HiLink ocamlMethod Include hi def link ocamlMethod Include
HiLink ocamlArrow Keyword hi def link ocamlArrow Keyword
HiLink ocamlKeyChar Keyword hi def link ocamlKeyChar Keyword
HiLink ocamlAnyVar Keyword hi def link ocamlAnyVar Keyword
HiLink ocamlTopStop Keyword hi def link ocamlTopStop Keyword
HiLink ocamlRefAssign ocamlKeyChar hi def link ocamlRefAssign ocamlKeyChar
HiLink ocamlEqual ocamlKeyChar hi def link ocamlEqual ocamlKeyChar
HiLink ocamlStar ocamlInfixOp hi def link ocamlStar ocamlInfixOp
HiLink ocamlAngle ocamlInfixOp hi def link ocamlAngle ocamlInfixOp
HiLink ocamlCons ocamlInfixOp hi def link ocamlCons ocamlInfixOp
HiLink ocamlPrefixOp ocamlOperator hi def link ocamlPrefixOp ocamlOperator
HiLink ocamlInfixOp ocamlOperator hi def link ocamlInfixOp ocamlOperator
HiLink ocamlExtensionOp ocamlOperator hi def link ocamlExtensionOp ocamlOperator
HiLink ocamlIndexingOp ocamlOperator hi def link ocamlIndexingOp ocamlOperator
if exists("ocaml_highlight_operators") if exists("ocaml_highlight_operators")
HiLink ocamlInfixOpKeyword ocamlOperator hi def link ocamlInfixOpKeyword ocamlOperator
HiLink ocamlOperator Operator hi def link ocamlOperator Operator
else else
HiLink ocamlInfixOpKeyword Keyword hi def link ocamlInfixOpKeyword Keyword
endif
HiLink ocamlBoolean Boolean
HiLink ocamlCharacter Character
HiLink ocamlNumber Number
HiLink ocamlFloat Float
HiLink ocamlString String
HiLink ocamlQuotedStringDelim Identifier
HiLink ocamlLabel Identifier
HiLink ocamlType Type
HiLink ocamlTodo Todo
HiLink ocamlEncl Keyword
HiLink ocamlPpxEncl ocamlEncl
delcommand HiLink
endif endif
hi def link ocamlBoolean Boolean
hi def link ocamlCharacter Character
hi def link ocamlNumber Number
hi def link ocamlFloat Float
hi def link ocamlString String
hi def link ocamlQuotedStringDelim Identifier
hi def link ocamlLabel Identifier
hi def link ocamlType Type
hi def link ocamlTodo Todo
hi def link ocamlEncl Keyword
hi def link ocamlPpxEncl ocamlEncl
let b:current_syntax = "ocaml" let b:current_syntax = "ocaml"
" vim: ts=8 " vim: ts=8

View File

@@ -2,13 +2,13 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'octave') == -1
" Vim syntax file " Vim syntax file
" Language: Octave " Language: Octave
" Maintainer: Rik <rik@nomad.inbox5.com> " Maintainer: Rik <rik@octave.org>
" Original Maintainers: Jaroslav Hajek <highegg@gmail.com> " Original Maintainers: Jaroslav Hajek <highegg@gmail.com>
" Francisco Castro <fcr@adinet.com.uy> " Francisco Castro <fcr@adinet.com.uy>
" Preben 'Peppe' Guldberg <peppe-vim@wielders.org> " Preben 'Peppe' Guldberg <peppe-vim@wielders.org>
" Original Author: Mario Eusebio " Original Author: Mario Eusebio
" Last Change: 07 Jun 2011 " Last Change: 13 Nov 2016
" Syntax matched to Octave Release: 3.4.0 " Syntax matched to Octave Release: 4.2.0
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
if version < 600 if version < 600
syntax clear syntax clear
@@ -26,18 +26,21 @@ setlocal iskeyword +=.
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Syntax group definitions for Octave " Syntax group definitions for Octave
syn keyword octaveBeginKeyword for function if switch try unwind_protect while syn keyword octaveBeginKeyword for parfor function if switch
syn keyword octaveBeginKeyword do syn keyword octaveBeginKeyword try unwind_protect while do
syn keyword octaveEndKeyword end endfor endfunction endif endswitch syn keyword octaveBeginKeyword classdef enumeration events methods properties
syn keyword octaveEndKeyword end endfor endparfor endfunction endif endswitch
syn keyword octaveEndKeyword end_try_catch end_unwind_protect endwhile until syn keyword octaveEndKeyword end_try_catch end_unwind_protect endwhile until
syn keyword octaveEndKeyword endclassdef endenumeration endevents endmethods
syn keyword octaveEndKeyword endproperties
syn keyword octaveElseKeyword case catch else elseif otherwise syn keyword octaveElseKeyword case catch else elseif otherwise
syn keyword octaveElseKeyword unwind_protect_cleanup syn keyword octaveElseKeyword unwind_protect_cleanup
syn keyword octaveStatement break continue global persistent return syn keyword octaveStatement break continue global persistent return
syn keyword octaveReserved __FILE__ __LINE__ classdef endclassdef endevents syn keyword octaveVarKeyword varargin varargout
syn keyword octaveReserved endmethods endproperties events methods properties
syn keyword octaveReserved static syn keyword octaveReserved __FILE__ __LINE__
" List of commands (these don't require a parenthesis to invoke) " List of commands (these don't require a parenthesis to invoke)
syn keyword octaveCommand contained cd chdir clear close dbcont dbquit dbstep syn keyword octaveCommand contained cd chdir clear close dbcont dbquit dbstep
@@ -48,415 +51,521 @@ syn keyword octaveCommand contained run_history save shg test type what which
syn keyword octaveCommand contained who whos syn keyword octaveCommand contained who whos
" List of functions which set internal variables " List of functions which set internal variables
syn keyword octaveSetVarFun contained EDITOR EXEC_PATH F_SETFD F_SETFL I syn keyword octaveSetVarFun contained EDITOR EXEC_PATH I IMAGE_PATH Inf J NA
syn keyword octaveSetVarFun contained IMAGE_PATH Inf J NA NaN O_APPEND O_ASYNC syn keyword octaveSetVarFun contained NaN PAGER PAGER_FLAGS PS1 PS2 PS4
syn keyword octaveSetVarFun contained PAGER PAGER_FLAGS PS1 PS2 PS4 syn keyword octaveSetVarFun contained allow_noninteger_range_as_index ans
syn keyword octaveSetVarFun contained __error_text__ syn keyword octaveSetVarFun contained beep_on_error built_in_docstrings_file
syn keyword octaveSetVarFun contained allow_noninteger_range_as_index ans argv syn keyword octaveSetVarFun contained completion_append_char
syn keyword octaveSetVarFun contained beep_on_error completion_append_char
syn keyword octaveSetVarFun contained confirm_recursive_rmdir syn keyword octaveSetVarFun contained confirm_recursive_rmdir
syn keyword octaveSetVarFun contained crash_dumps_octave_core debug_on_error syn keyword octaveSetVarFun contained crash_dumps_octave_core debug_java
syn keyword octaveSetVarFun contained debug_jit debug_on_error
syn keyword octaveSetVarFun contained debug_on_interrupt debug_on_warning syn keyword octaveSetVarFun contained debug_on_interrupt debug_on_warning
syn keyword octaveSetVarFun contained default_save_options syn keyword octaveSetVarFun contained disable_diagonal_matrix
syn keyword octaveSetVarFun contained disable_permutation_matrix disable_range
syn keyword octaveSetVarFun contained do_braindead_shortcircuit_evaluation syn keyword octaveSetVarFun contained do_braindead_shortcircuit_evaluation
syn keyword octaveSetVarFun contained doc_cache_file e echo_executing_commands syn keyword octaveSetVarFun contained doc_cache_file e echo_executing_commands
syn keyword octaveSetVarFun contained eps error_text false filemarker syn keyword octaveSetVarFun contained eps false filemarker fixed_point_format
syn keyword octaveSetVarFun contained fixed_point_format gnuplot_binary syn keyword octaveSetVarFun contained gnuplot_binary graphics_toolkit history
syn keyword octaveSetVarFun contained gui_mode history_control history_file syn keyword octaveSetVarFun contained history_control history_file
syn keyword octaveSetVarFun contained history_size syn keyword octaveSetVarFun contained history_save history_size
syn keyword octaveSetVarFun contained history_timestamp_format_string i syn keyword octaveSetVarFun contained history_timestamp_format_string i
syn keyword octaveSetVarFun contained ignore_function_time_stamp inf info_file syn keyword octaveSetVarFun contained ignore_function_time_stamp inf info_file
syn keyword octaveSetVarFun contained info_program j ls_command syn keyword octaveSetVarFun contained info_program j
syn keyword octaveSetVarFun contained java_matrix_autoconversion
syn keyword octaveSetVarFun contained java_unsigned_autoconversion jit_enable
syn keyword octaveSetVarFun contained jit_failcnt jit_startcnt ls_command
syn keyword octaveSetVarFun contained makeinfo_program max_recursion_depth syn keyword octaveSetVarFun contained makeinfo_program max_recursion_depth
syn keyword octaveSetVarFun contained missing_component_hook
syn keyword octaveSetVarFun contained missing_function_hook mouse_wheel_zoom syn keyword octaveSetVarFun contained missing_function_hook mouse_wheel_zoom
syn keyword octaveSetVarFun contained nan nargin nargout octave_core_file_limit syn keyword octaveSetVarFun contained nan nargin nargout
syn keyword octaveSetVarFun contained octave_core_file_limit
syn keyword octaveSetVarFun contained octave_core_file_name syn keyword octaveSetVarFun contained octave_core_file_name
syn keyword octaveSetVarFun contained octave_core_file_options syn keyword octaveSetVarFun contained octave_core_file_options
syn keyword octaveSetVarFun contained optimize_subsasgn_calls syn keyword octaveSetVarFun contained optimize_subsasgn_calls
syn keyword octaveSetVarFun contained output_max_field_width output_precision syn keyword octaveSetVarFun contained output_max_field_width output_precision
syn keyword octaveSetVarFun contained page_output_immediately syn keyword octaveSetVarFun contained page_output_immediately
syn keyword octaveSetVarFun contained page_screen_output pathsep pi syn keyword octaveSetVarFun contained page_screen_output path pathsep pi
syn keyword octaveSetVarFun contained print_empty_dimensions syn keyword octaveSetVarFun contained prefdir print_empty_dimensions
syn keyword octaveSetVarFun contained print_struct_array_contents syn keyword octaveSetVarFun contained print_struct_array_contents realmax
syn keyword octaveSetVarFun contained program_invocation_name program_name syn keyword octaveSetVarFun contained realmin save_default_options
syn keyword octaveSetVarFun contained realmax realmin
syn keyword octaveSetVarFun contained save_header_format_string save_precision syn keyword octaveSetVarFun contained save_header_format_string save_precision
syn keyword octaveSetVarFun contained saving_history sighup_dumps_octave_core syn keyword octaveSetVarFun contained sighup_dumps_octave_core
syn keyword octaveSetVarFun contained sigterm_dumps_octave_core syn keyword octaveSetVarFun contained sigterm_dumps_octave_core
syn keyword octaveSetVarFun contained silent_functions sparse_auto_mutate syn keyword octaveSetVarFun contained silent_functions sparse_auto_mutate
syn keyword octaveSetVarFun contained split_long_rows string_fill_char syn keyword octaveSetVarFun contained split_long_rows string_fill_char
syn keyword octaveSetVarFun contained struct_levels_to_print syn keyword octaveSetVarFun contained struct_levels_to_print
syn keyword octaveSetVarFun contained suppress_verbose_help_message svd_driver syn keyword octaveSetVarFun contained suppress_verbose_help_message svd_driver
syn keyword octaveSetVarFun contained true whos_line_format syn keyword octaveSetVarFun contained texi_macros_file true whos_line_format
" List of functions which query internal variables " List of functions which query internal variables
" Excluded i,j from list above because they are often used as loop variables " Excluded i,j from list above because they are often used as loop variables
" They will be highlighted appropriately by the rule which matches numbers " They will be highlighted appropriately by the rule which matches numbers
syn keyword octaveVariable contained EDITOR EXEC_PATH F_SETFD F_SETFL I syn keyword octaveVariable contained EDITOR EDITOR EXEC_PATH F_SETFL I
syn keyword octaveVariable contained IMAGE_PATH Inf J NA NaN O_APPEND O_ASYNC syn keyword octaveVariable contained IMAGE_PATH Inf J NA NaN PAGER
syn keyword octaveVariable contained PAGER PAGER_FLAGS PS1 PS2 PS4 syn keyword octaveVariable contained PAGER_FLAGS PS1 PS2 PS4
syn keyword octaveVariable contained __error_text__ syn keyword octaveVariable contained allow_noninteger_range_as_index ans
syn keyword octaveVariable contained allow_noninteger_range_as_index ans argv syn keyword octaveVariable contained beep_on_error built_in_docstrings_file
syn keyword octaveVariable contained beep_on_error completion_append_char syn keyword octaveVariable contained completion_append_char
syn keyword octaveVariable contained confirm_recursive_rmdir syn keyword octaveVariable contained confirm_recursive_rmdir
syn keyword octaveVariable contained crash_dumps_octave_core debug_on_error syn keyword octaveVariable contained crash_dumps_octave_core debug_java
syn keyword octaveVariable contained debug_jit debug_on_error
syn keyword octaveVariable contained debug_on_interrupt debug_on_warning syn keyword octaveVariable contained debug_on_interrupt debug_on_warning
syn keyword octaveVariable contained default_save_options syn keyword octaveVariable contained disable_diagonal_matrix
syn keyword octaveVariable contained disable_permutation_matrix disable_range
syn keyword octaveVariable contained do_braindead_shortcircuit_evaluation syn keyword octaveVariable contained do_braindead_shortcircuit_evaluation
syn keyword octaveVariable contained doc_cache_file e echo_executing_commands syn keyword octaveVariable contained doc_cache_file e echo_executing_commands
syn keyword octaveVariable contained eps error_text false filemarker syn keyword octaveVariable contained eps false filemarker fixed_point_format
syn keyword octaveVariable contained fixed_point_format gnuplot_binary syn keyword octaveVariable contained gnuplot_binary graphics_toolkit history
syn keyword octaveVariable contained gui_mode history_control history_file syn keyword octaveVariable contained history_control history_file
syn keyword octaveVariable contained history_size syn keyword octaveVariable contained history_save history_size
syn keyword octaveVariable contained history_timestamp_format_string syn keyword octaveVariable contained history_timestamp_format_string i
syn keyword octaveVariable contained ignore_function_time_stamp inf info_file syn keyword octaveVariable contained ignore_function_time_stamp inf info_file
syn keyword octaveVariable contained info_program ls_command syn keyword octaveVariable contained info_program j
syn keyword octaveVariable contained java_matrix_autoconversion
syn keyword octaveVariable contained java_unsigned_autoconversion jit_enable
syn keyword octaveVariable contained jit_failcnt jit_startcnt ls_command
syn keyword octaveVariable contained makeinfo_program max_recursion_depth syn keyword octaveVariable contained makeinfo_program max_recursion_depth
syn keyword octaveVariable contained missing_component_hook
syn keyword octaveVariable contained missing_function_hook mouse_wheel_zoom syn keyword octaveVariable contained missing_function_hook mouse_wheel_zoom
syn keyword octaveVariable contained nan nargin nargout octave_core_file_limit syn keyword octaveVariable contained nan nargin nargout
syn keyword octaveVariable contained octave_core_file_limit
syn keyword octaveVariable contained octave_core_file_name syn keyword octaveVariable contained octave_core_file_name
syn keyword octaveVariable contained octave_core_file_options syn keyword octaveVariable contained octave_core_file_options
syn keyword octaveVariable contained optimize_subsasgn_calls syn keyword octaveVariable contained optimize_subsasgn_calls
syn keyword octaveVariable contained output_max_field_width output_precision syn keyword octaveVariable contained output_max_field_width output_precision
syn keyword octaveVariable contained page_output_immediately syn keyword octaveVariable contained page_output_immediately
syn keyword octaveVariable contained page_screen_output pathsep pi syn keyword octaveVariable contained page_screen_output path pathsep pi
syn keyword octaveVariable contained print_empty_dimensions syn keyword octaveVariable contained prefdir print_empty_dimensions
syn keyword octaveVariable contained print_struct_array_contents syn keyword octaveVariable contained print_struct_array_contents realmax
syn keyword octaveVariable contained program_invocation_name program_name syn keyword octaveVariable contained realmin save_default_options
syn keyword octaveVariable contained realmax realmin
syn keyword octaveVariable contained save_header_format_string save_precision syn keyword octaveVariable contained save_header_format_string save_precision
syn keyword octaveVariable contained saving_history sighup_dumps_octave_core syn keyword octaveVariable contained sighup_dumps_octave_core
syn keyword octaveVariable contained sigterm_dumps_octave_core syn keyword octaveVariable contained sigterm_dumps_octave_core
syn keyword octaveVariable contained silent_functions sparse_auto_mutate syn keyword octaveVariable contained silent_functions sparse_auto_mutate
syn keyword octaveVariable contained split_long_rows string_fill_char syn keyword octaveVariable contained split_long_rows string_fill_char
syn keyword octaveVariable contained struct_levels_to_print syn keyword octaveVariable contained struct_levels_to_print
syn keyword octaveVariable contained suppress_verbose_help_message svd_driver syn keyword octaveVariable contained suppress_verbose_help_message svd_driver
syn keyword octaveVariable contained true whos_line_format syn keyword octaveVariable contained texi_macros_file true whos_line_format
" Read-only variables " Read-only variables
syn keyword octaveVariable contained F_DUPFD F_GETFD F_GETFL OCTAVE_HOME syn keyword octaveVariable contained F_DUPFD F_GETFD F_GETFL F_SETFD F_SETFL
syn keyword octaveVariable contained OCTAVE_VERSION O_CREAT O_EXCL O_NONBLOCK syn keyword octaveVariable contained OCTAVE_HOME OCTAVE_VERSION O_APPEND
syn keyword octaveVariable contained O_ASYNC O_CREAT O_EXCL O_NONBLOCK
syn keyword octaveVariable contained O_RDONLY O_RDWR O_SYNC O_TRUNC O_WRONLY syn keyword octaveVariable contained O_RDONLY O_RDWR O_SYNC O_TRUNC O_WRONLY
syn keyword octaveVariable contained P_tmpdir SEEK_CUR SEEK_END SEEK_SET syn keyword octaveVariable contained P_tmpdir SEEK_CUR SEEK_END SEEK_SET SIG
syn keyword octaveVariable contained WCONTINUE WCOREDUMP WEXITSTATUS syn keyword octaveVariable contained WCONTINUE WCOREDUMP WEXITSTATUS
syn keyword octaveVariable contained WIFCONTINUED WIFEXITED WIFSIGNALED syn keyword octaveVariable contained WIFCONTINUED WIFEXITED WIFSIGNALED
syn keyword octaveVariable contained WIFSTOPPED WNOHANG WSTOPSIG WTERMSIG syn keyword octaveVariable contained WIFSTOPPED WNOHANG WSTOPSIG WTERMSIG
syn keyword octaveVariable contained WUNTRACED matlabroot pwd stderr stdin syn keyword octaveVariable contained WUNTRACED argv
syn keyword octaveVariable contained stdout syn keyword octaveVariable contained available_graphics_toolkits
syn keyword octaveVariable contained command_line_path have_window_system
syn keyword octaveVariable contained isstudent loaded_graphics_toolkits
syn keyword octaveVariable contained matlabroot namelengthmax
syn keyword octaveVariable contained native_float_format
syn keyword octaveVariable contained program_invocation_name program_name pwd
syn keyword octaveVariable contained stderr stdin stdout
" List of functions " List of functions
syn keyword octaveFunction contained SIG S_ISBLK S_ISCHR S_ISDIR S_ISFIFO syn keyword octaveFunction contained S_ISBLK S_ISCHR S_ISDIR S_ISFIFO S_ISLNK
syn keyword octaveFunction contained S_ISLNK S_ISREG S_ISSOCK syn keyword octaveFunction contained S_ISREG S_ISSOCK __accumarray_max__
syn keyword octaveFunction contained __accumarray_max__ __accumarray_min__ syn keyword octaveFunction contained __accumarray_min__ __accumarray_sum__
syn keyword octaveFunction contained __accumarray_sum__ __accumdim_sum__ syn keyword octaveFunction contained __accumdim_sum__
syn keyword octaveFunction contained __all_opts__ __builtins__ syn keyword octaveFunction contained __actual_axis_position__ __all_opts__
syn keyword octaveFunction contained __calc_dimensions__ __contourc__ syn keyword octaveFunction contained __builtins__ __calc_dimensions__
syn keyword octaveFunction contained __current_scope__ __delaunayn__ syn keyword octaveFunction contained __clabel__ __compactformat__
syn keyword octaveFunction contained __contourc__ __current_scope__
syn keyword octaveFunction contained __db_next_breakpoint_quiet__
syn keyword octaveFunction contained __default_plot_options__ __delaunayn__
syn keyword octaveFunction contained __diaryfile__ __diarystate__
syn keyword octaveFunction contained __dispatch__ __display_tokens__ syn keyword octaveFunction contained __dispatch__ __display_tokens__
syn keyword octaveFunction contained __dsearchn__ __dump_symtab_info__ __end__ syn keyword octaveFunction contained __dsearchn__ __dump_load_path__
syn keyword octaveFunction contained __finish__ __fltk_ginput__ syn keyword octaveFunction contained __dump_symtab_info__ __dump_typeinfo__
syn keyword octaveFunction contained __fltk_maxtime__ __fltk_print__ syn keyword octaveFunction contained __echostate__ __eigs__ __fieldnames__
syn keyword octaveFunction contained __fltk_redraw__ __fltk_uigetfile__ syn keyword octaveFunction contained __finish__ __fltk_check__
syn keyword octaveFunction contained __ftp__ __ftp_ascii__ __ftp_binary__ syn keyword octaveFunction contained __fltk_uigetfile__ __fnmatch__
syn keyword octaveFunction contained __ftp_close__ __ftp_cwd__ __ftp_delete__ syn keyword octaveFunction contained __formatstring__ __ftp__ __ftp_ascii__
syn keyword octaveFunction contained __ftp_dir__ __ftp_mget__ __ftp_mkdir__ syn keyword octaveFunction contained __ftp_binary__ __ftp_close__ __ftp_cwd__
syn keyword octaveFunction contained __ftp_mode__ __ftp_mput__ __ftp_pwd__ syn keyword octaveFunction contained __ftp_delete__ __ftp_dir__ __ftp_mget__
syn keyword octaveFunction contained __ftp_rename__ __ftp_rmdir__ __get__ syn keyword octaveFunction contained __ftp_mkdir__ __ftp_mode__ __ftp_mput__
syn keyword octaveFunction contained __glpk__ __gnuplot_drawnow__ syn keyword octaveFunction contained __ftp_pwd__ __ftp_rename__ __ftp_rmdir__
syn keyword octaveFunction contained __gnuplot_get_var__ __gnuplot_ginput__ syn keyword octaveFunction contained __get__ __get_cmdline_fcn_txt__
syn keyword octaveFunction contained __gnuplot_has_feature__ syn keyword octaveFunction contained __getlegenddata__ __glpk__
syn keyword octaveFunction contained __gnuplot_open_stream__ __gnuplot_print__ syn keyword octaveFunction contained __gnuplot_drawnow__ __go_axes__
syn keyword octaveFunction contained __gnuplot_version__ __go_axes__ syn keyword octaveFunction contained __go_axes_init__ __go_delete__
syn keyword octaveFunction contained __go_axes_init__ __go_close_all__
syn keyword octaveFunction contained __go_delete__ __go_draw_axes__
syn keyword octaveFunction contained __go_draw_figure__
syn keyword octaveFunction contained __go_execute_callback__ __go_figure__ syn keyword octaveFunction contained __go_execute_callback__ __go_figure__
syn keyword octaveFunction contained __go_figure_handles__ __go_handles__ syn keyword octaveFunction contained __go_figure_handles__ __go_handles__
syn keyword octaveFunction contained __go_hggroup__ __go_image__ __go_line__ syn keyword octaveFunction contained __go_hggroup__ __go_image__ __go_light__
syn keyword octaveFunction contained __go_patch__ __go_surface__ __go_text__ syn keyword octaveFunction contained __go_line__ __go_patch__ __go_surface__
syn keyword octaveFunction contained __go_uimenu__ __gud_mode__ syn keyword octaveFunction contained __go_text__ __go_uibuttongroup__
syn keyword octaveFunction contained __image_pixel_size__ __init_fltk__ syn keyword octaveFunction contained __go_uicontextmenu__ __go_uicontrol__
syn keyword octaveFunction contained __isa_parent__ __keywords__ syn keyword octaveFunction contained __go_uimenu__ __go_uipanel__
syn keyword octaveFunction contained __lexer_debug_flag__ __lin_interpn__ syn keyword octaveFunction contained __go_uipushtool__ __go_uitoggletool__
syn keyword octaveFunction contained __list_functions__ __magick_finfo__ syn keyword octaveFunction contained __go_uitoolbar__
syn keyword octaveFunction contained __magick_format_list__ __magick_read__ syn keyword octaveFunction contained __gripe_missing_component__ __gud_mode__
syn keyword octaveFunction contained __magick_write__ __makeinfo__ syn keyword octaveFunction contained __have_feature__ __have_gnuplot__
syn keyword octaveFunction contained __marching_cube__ __next_line_color__ syn keyword octaveFunction contained __ichol0__ __icholt__ __ilu0__ __iluc__
syn keyword octaveFunction contained __next_line_style__ __operators__ syn keyword octaveFunction contained __ilutp__ __image_pixel_size__
syn keyword octaveFunction contained __parent_classes__ __parser_debug_flag__ syn keyword octaveFunction contained __init_fltk__ __init_gnuplot__
syn keyword octaveFunction contained __pathorig__ __pchip_deriv__ syn keyword octaveFunction contained __is_handle_visible__ __java_exit__
syn keyword octaveFunction contained __plt_get_axis_arg__ __print_parse_opts__ syn keyword octaveFunction contained __java_get__ __java_init__ __java_set__
syn keyword octaveFunction contained __qp__ __remove_fltk__ syn keyword octaveFunction contained __keywords__ __lexer_debug_flag__
syn keyword octaveFunction contained __request_drawnow__ __sort_rows_idx__ syn keyword octaveFunction contained __lin_interpn__ __list_functions__
syn keyword octaveFunction contained __strip_html_tags__ __token_count__ syn keyword octaveFunction contained __luinc__ __magick_finfo__
syn keyword octaveFunction contained __varval__ __version_info__ __voronoi__ syn keyword octaveFunction contained __magick_formats__ __magick_ping__
syn keyword octaveFunction contained __which__ abs accumarray accumdim acos syn keyword octaveFunction contained __magick_read__ __magick_write__
syn keyword octaveFunction contained acosd acosh acot acotd acoth acsc acscd syn keyword octaveFunction contained __makeinfo__ __meta_class_query__
syn keyword octaveFunction contained acsch add_input_event_hook addlistener syn keyword octaveFunction contained __meta_get_package__ __methods__
syn keyword octaveFunction contained addpath addproperty addtodate airy all syn keyword octaveFunction contained __mkdir__ __next_line_color__
syn keyword octaveFunction contained allchild amd ancestor and angle anova any syn keyword octaveFunction contained __next_line_style__
syn keyword octaveFunction contained arch_fit arch_rnd arch_test area arg syn keyword octaveFunction contained __octave_config_info__
syn keyword octaveFunction contained argnames arma_rnd arrayfun asctime asec syn keyword octaveFunction contained __octave_link_edit_file__
syn keyword octaveFunction contained asecd asech asin asind asinh assert syn keyword octaveFunction contained __octave_link_enabled__
syn keyword octaveFunction contained assignin atan atan2 atand atanh atexit syn keyword octaveFunction contained __octave_link_file_dialog__
syn keyword octaveFunction contained autocor autocov autoload autoreg_matrix syn keyword octaveFunction contained __octave_link_input_dialog__
syn keyword octaveFunction contained autumn available_graphics_toolkits axes syn keyword octaveFunction contained __octave_link_list_dialog__
syn keyword octaveFunction contained axis balance bar barh bartlett syn keyword octaveFunction contained __octave_link_message_dialog__
syn keyword octaveFunction contained bartlett_test base2dec beep bessel syn keyword octaveFunction contained __octave_link_question_dialog__
syn keyword octaveFunction contained __octave_link_show_doc__
syn keyword octaveFunction contained __octave_link_show_preferences__
syn keyword octaveFunction contained __open_with_system_app__ __opengl_info__
syn keyword octaveFunction contained __operators__ __osmesa_print__
syn keyword octaveFunction contained __parent_classes__ __parse_file__
syn keyword octaveFunction contained __parser_debug_flag__ __pathorig__
syn keyword octaveFunction contained __pchip_deriv__ __player_audioplayer__
syn keyword octaveFunction contained __player_get_channels__
syn keyword octaveFunction contained __player_get_fs__ __player_get_id__
syn keyword octaveFunction contained __player_get_nbits__
syn keyword octaveFunction contained __player_get_sample_number__
syn keyword octaveFunction contained __player_get_tag__
syn keyword octaveFunction contained __player_get_total_samples__
syn keyword octaveFunction contained __player_get_userdata__
syn keyword octaveFunction contained __player_isplaying__ __player_pause__
syn keyword octaveFunction contained __player_play__ __player_playblocking__
syn keyword octaveFunction contained __player_resume__ __player_set_fs__
syn keyword octaveFunction contained __player_set_tag__
syn keyword octaveFunction contained __player_set_userdata__ __player_stop__
syn keyword octaveFunction contained __plt_get_axis_arg__ __pltopt__
syn keyword octaveFunction contained __printf_assert__ __profiler_data__
syn keyword octaveFunction contained __profiler_enable__ __profiler_reset__
syn keyword octaveFunction contained __prog_output_assert__ __qp__
syn keyword octaveFunction contained __recorder_audiorecorder__
syn keyword octaveFunction contained __recorder_get_channels__
syn keyword octaveFunction contained __recorder_get_fs__ __recorder_get_id__
syn keyword octaveFunction contained __recorder_get_nbits__
syn keyword octaveFunction contained __recorder_get_sample_number__
syn keyword octaveFunction contained __recorder_get_tag__
syn keyword octaveFunction contained __recorder_get_total_samples__
syn keyword octaveFunction contained __recorder_get_userdata__
syn keyword octaveFunction contained __recorder_getaudiodata__
syn keyword octaveFunction contained __recorder_isrecording__
syn keyword octaveFunction contained __recorder_pause__ __recorder_record__
syn keyword octaveFunction contained __recorder_recordblocking__
syn keyword octaveFunction contained __recorder_resume__ __recorder_set_fs__
syn keyword octaveFunction contained __recorder_set_tag__
syn keyword octaveFunction contained __recorder_set_userdata__
syn keyword octaveFunction contained __recorder_stop__ __request_drawnow__
syn keyword octaveFunction contained __run_test_suite__ __sort_rows_idx__
syn keyword octaveFunction contained __superclass_reference__ __textscan__
syn keyword octaveFunction contained __token_count__ __unimplemented__
syn keyword octaveFunction contained __usage__ __varval__ __version_info__
syn keyword octaveFunction contained __voronoi__ __wglob__ __which__ __zoom__
syn keyword octaveFunction contained abs accumarray accumdim acos acosd acosh
syn keyword octaveFunction contained acot acotd acoth acsc acscd acsch
syn keyword octaveFunction contained add_input_event_hook addlistener addpath
syn keyword octaveFunction contained addpref addproperty addtodate airy all
syn keyword octaveFunction contained allchild amd ancestor and angle
syn keyword octaveFunction contained annotation anova any arch_fit arch_rnd
syn keyword octaveFunction contained arch_test area arg argnames arma_rnd
syn keyword octaveFunction contained arrayfun asctime asec asecd asech asin
syn keyword octaveFunction contained asind asinh assert assignin atan atan2
syn keyword octaveFunction contained atan2d atand atanh atexit audiodevinfo
syn keyword octaveFunction contained audioformats audioinfo audioread
syn keyword octaveFunction contained audiowrite autoload autoreg_matrix
syn keyword octaveFunction contained autumn axes axis balance bandwidth bar
syn keyword octaveFunction contained barh bartlett bartlett_test base2dec
syn keyword octaveFunction contained base64_decode base64_encode beep bessel
syn keyword octaveFunction contained besselh besseli besselj besselk bessely syn keyword octaveFunction contained besselh besseli besselj besselk bessely
syn keyword octaveFunction contained beta betacdf betai betainc betainv betaln syn keyword octaveFunction contained beta betacdf betainc betaincinv betainv
syn keyword octaveFunction contained betapdf betarnd bicgstab bicubic bin2dec syn keyword octaveFunction contained betaln betapdf betarnd bicg bicgstab
syn keyword octaveFunction contained bincoeff binocdf binoinv binopdf binornd syn keyword octaveFunction contained bicubic bin2dec bincoeff binocdf binoinv
syn keyword octaveFunction contained bitand bitcmp bitget bitmax bitor bitpack syn keyword octaveFunction contained binopdf binornd bitand bitcmp bitget
syn keyword octaveFunction contained bitset bitshift bitunpack bitxor blackman syn keyword octaveFunction contained bitmax bitor bitpack bitset bitshift
syn keyword octaveFunction contained blanks blkdiag blkmm bone box brighten syn keyword octaveFunction contained bitunpack bitxor blackman blanks blkdiag
syn keyword octaveFunction contained bsxfun bug_report builtin bunzip2 bzip2 syn keyword octaveFunction contained blkmm bone box brighten bsxfun
syn keyword octaveFunction contained calendar canonicalize_file_name cart2pol syn keyword octaveFunction contained bug_report builtin bunzip2 bzip2
syn keyword octaveFunction contained cart2sph cast cat cauchy_cdf cauchy_inv syn keyword octaveFunction contained calendar camlight canonicalize_file_name
syn keyword octaveFunction contained cauchy_pdf cauchy_rnd caxis cbrt ccolamd syn keyword octaveFunction contained cart2pol cart2sph cast cat cauchy_cdf
syn keyword octaveFunction contained ceil cell cell2mat cell2struct celldisp syn keyword octaveFunction contained cauchy_inv cauchy_pdf cauchy_rnd caxis
syn keyword octaveFunction contained cellfun cellidx cellindexmat cellslices syn keyword octaveFunction contained cbrt ccolamd ceil cell cell2mat
syn keyword octaveFunction contained cellstr center cgs char chi2cdf chi2inv syn keyword octaveFunction contained cell2struct celldisp cellfun
syn keyword octaveFunction contained chi2pdf chi2rnd syn keyword octaveFunction contained cellindexmat cellslices cellstr center
syn keyword octaveFunction contained cgs char chi2cdf chi2inv chi2pdf chi2rnd
syn keyword octaveFunction contained chisquare_test_homogeneity syn keyword octaveFunction contained chisquare_test_homogeneity
syn keyword octaveFunction contained chisquare_test_independence chol chol2inv syn keyword octaveFunction contained chisquare_test_independence chol
syn keyword octaveFunction contained choldelete cholinsert cholinv cholshift syn keyword octaveFunction contained chol2inv choldelete cholinsert cholinv
syn keyword octaveFunction contained cholupdate chop circshift cla clabel syn keyword octaveFunction contained cholshift cholupdate chop circshift
syn keyword octaveFunction contained class clc clf clg clock cloglog closereq syn keyword octaveFunction contained citation cla clabel class clc clf clock
syn keyword octaveFunction contained colamd colloc colon colorbar colormap syn keyword octaveFunction contained cloglog closereq cmpermute cmunique
syn keyword octaveFunction contained colperm colstyle columns comet comet3 syn keyword octaveFunction contained colamd colloc colon colorbar colorcube
syn keyword octaveFunction contained comma command_line_path common_size syn keyword octaveFunction contained colormap colperm colstyle columns comet
syn keyword octaveFunction contained comet3 comma common_size
syn keyword octaveFunction contained commutation_matrix compan syn keyword octaveFunction contained commutation_matrix compan
syn keyword octaveFunction contained compare_versions compass complement syn keyword octaveFunction contained compare_versions compass
syn keyword octaveFunction contained completion_matches complex computer cond syn keyword octaveFunction contained completion_matches complex computer cond
syn keyword octaveFunction contained condest conj contour contour3 contourc syn keyword octaveFunction contained condeig condest conj contour contour3
syn keyword octaveFunction contained contourf contrast conv conv2 convhull syn keyword octaveFunction contained contourc contourf contrast conv conv2
syn keyword octaveFunction contained convhulln convn cool copper copyfile cor syn keyword octaveFunction contained convhull convhulln convn cool copper
syn keyword octaveFunction contained cor_test corrcoef cos cosd cosh cot cotd syn keyword octaveFunction contained copyfile copyobj cor_test corr cos cosd
syn keyword octaveFunction contained coth cov cplxpair cputime cquad syn keyword octaveFunction contained cosh cot cotd coth cov cplxpair cputime
syn keyword octaveFunction contained create_set cross csc cscd csch cstrcat syn keyword octaveFunction contained cross csc cscd csch cstrcat csvread
syn keyword octaveFunction contained csvread csvwrite csymamd ctime ctranspose syn keyword octaveFunction contained csvwrite csymamd ctime ctranspose
syn keyword octaveFunction contained cummax cummin cumprod cumsum cumtrapz syn keyword octaveFunction contained cubehelix cummax cummin cumprod cumsum
syn keyword octaveFunction contained curl cut cylinder daspect daspk syn keyword octaveFunction contained cumtrapz curl cylinder daspect daspk
syn keyword octaveFunction contained daspk_options dasrt dasrt_options dassl syn keyword octaveFunction contained daspk_options dasrt dasrt_options dassl
syn keyword octaveFunction contained dassl_options date datenum datestr syn keyword octaveFunction contained dassl_options date datenum datestr
syn keyword octaveFunction contained datetick datevec dbclear dbdown dblquad syn keyword octaveFunction contained datetick datevec dawson dbclear dbdown
syn keyword octaveFunction contained dbnext dbstack dbstatus dbstop dbtype syn keyword octaveFunction contained dblist dblquad dbnext dbstack dbstatus
syn keyword octaveFunction contained dbup dbwhere deal deblank debug dec2base syn keyword octaveFunction contained dbstop dbtype dbup dbwhere deal deblank
syn keyword octaveFunction contained dec2bin dec2hex deconv del2 delaunay syn keyword octaveFunction contained debug dec2base dec2bin dec2hex deconv
syn keyword octaveFunction contained delaunay3 delaunayn delete dellistener syn keyword octaveFunction contained deg2rad del2 delaunay delaunay3
syn keyword octaveFunction contained det detrend diag diff diffpara diffuse syn keyword octaveFunction contained delaunayn delete dellistener desktop det
syn keyword octaveFunction contained dir discrete_cdf discrete_inv syn keyword octaveFunction contained detrend diag dialog diff diffpara
syn keyword octaveFunction contained discrete_pdf discrete_rnd disp dispatch syn keyword octaveFunction contained diffuse dir dir_in_loadpath discrete_cdf
syn keyword octaveFunction contained display divergence dlmread dlmwrite syn keyword octaveFunction contained discrete_inv discrete_pdf discrete_rnd
syn keyword octaveFunction contained dmperm dmult do_string_escapes dos dot syn keyword octaveFunction contained disp display divergence dlmread dlmwrite
syn keyword octaveFunction contained double drawnow dsearch dsearchn syn keyword octaveFunction contained dmperm do_string_escapes
syn keyword octaveFunction contained dump_prefs dup2 duplication_matrix syn keyword octaveFunction contained doc_cache_create dos dot double drawnow
syn keyword octaveFunction contained durbinlevinson eig eigs ellipsoid syn keyword octaveFunction contained dsearch dsearchn dump_prefs dup2
syn keyword octaveFunction contained empirical_cdf empirical_inv empirical_pdf syn keyword octaveFunction contained duplication_matrix durbinlevinson eig
syn keyword octaveFunction contained empirical_rnd endgrent endpwent eomday eq syn keyword octaveFunction contained eigs ellipj ellipke ellipsoid
syn keyword octaveFunction contained erf erfc erfcx erfinv errno errno_list syn keyword octaveFunction contained empirical_cdf empirical_inv
syn keyword octaveFunction contained error errorbar etime etree etreeplot eval syn keyword octaveFunction contained empirical_pdf empirical_rnd endgrent
syn keyword octaveFunction contained evalin exec exist exit exp expcdf expinv syn keyword octaveFunction contained endpwent eomday eq erf erfc erfcinv
syn keyword octaveFunction contained expm expm1 exppdf exprnd eye ezcontour syn keyword octaveFunction contained erfcx erfi erfinv errno errno_list error
syn keyword octaveFunction contained ezcontourf ezmesh ezmeshc ezplot ezplot3 syn keyword octaveFunction contained error_ids errorbar errordlg etime etree
syn keyword octaveFunction contained ezpolar ezsurf ezsurfc f_test_regression syn keyword octaveFunction contained etreeplot eval evalc evalin exec exist
syn keyword octaveFunction contained exit exp expcdf expint expinv expm expm1
syn keyword octaveFunction contained exppdf exprnd eye ezcontour ezcontourf
syn keyword octaveFunction contained ezmesh ezmeshc ezplot ezplot3 ezpolar
syn keyword octaveFunction contained ezsurf ezsurfc f_test_regression fact
syn keyword octaveFunction contained factor factorial fail fcdf fclear fclose syn keyword octaveFunction contained factor factorial fail fcdf fclear fclose
syn keyword octaveFunction contained fcntl fdisp feather feof ferror feval syn keyword octaveFunction contained fcntl fdisp feather feof ferror feval
syn keyword octaveFunction contained fflush fft fft2 fftconv fftfilt fftn syn keyword octaveFunction contained fflush fft fft2 fftconv fftfilt fftn
syn keyword octaveFunction contained fftshift fftw fgetl fgets fieldnames syn keyword octaveFunction contained fftshift fftw fgetl fgets fieldnames
syn keyword octaveFunction contained figure file_in_loadpath file_in_path syn keyword octaveFunction contained figure file_in_loadpath file_in_path
syn keyword octaveFunction contained fileattrib fileparts fileread filesep syn keyword octaveFunction contained fileattrib fileparts fileread filesep
syn keyword octaveFunction contained fill filter filter2 find find_dir_in_path syn keyword octaveFunction contained fill filter filter2 find
syn keyword octaveFunction contained findall findobj findstr finite finv fix syn keyword octaveFunction contained find_dir_in_path findall findfigs
syn keyword octaveFunction contained flag flipdim fliplr flipud floor fminbnd syn keyword octaveFunction contained findobj findstr finite finv fix flag
syn keyword octaveFunction contained fminunc fmod fnmatch fopen fork formula syn keyword octaveFunction contained flintmax flip flipdim fliplr flipud
syn keyword octaveFunction contained fpdf fplot fprintf fputs fractdiff fread syn keyword octaveFunction contained floor fminbnd fminsearch fminunc fmod
syn keyword octaveFunction contained fnmatch fopen fork formula fpdf fplot
syn keyword octaveFunction contained fprintf fputs fractdiff frame2im fread
syn keyword octaveFunction contained freport freqz freqz_plot frewind frnd syn keyword octaveFunction contained freport freqz freqz_plot frewind frnd
syn keyword octaveFunction contained fscanf fseek fskipl fsolve fstat ftell syn keyword octaveFunction contained fscanf fseek fskipl fsolve ftell full
syn keyword octaveFunction contained full fullfile func2str functions fwrite syn keyword octaveFunction contained fullfile func2str functions fwrite fzero
syn keyword octaveFunction contained fzero gamcdf gaminv gamma gammai gammainc syn keyword octaveFunction contained gallery gamcdf gaminv gamma gammainc
syn keyword octaveFunction contained gammaln gampdf gamrnd gca gcbf gcbo gcd syn keyword octaveFunction contained gammaln gampdf gamrnd gca gcbf gcbo gcd
syn keyword octaveFunction contained gcf ge gen_doc_cache genpath genvarname syn keyword octaveFunction contained gcf gco ge genpath genvarname geocdf
syn keyword octaveFunction contained geocdf geoinv geopdf geornd get syn keyword octaveFunction contained geoinv geopdf geornd get
syn keyword octaveFunction contained get_first_help_sentence get_help_text syn keyword octaveFunction contained get_first_help_sentence get_help_text
syn keyword octaveFunction contained get_help_text_from_file getappdata syn keyword octaveFunction contained get_help_text_from_file
syn keyword octaveFunction contained getegid getenv geteuid getfield getgid syn keyword octaveFunction contained get_home_directory getappdata getegid
syn keyword octaveFunction contained getgrent getgrgid getgrnam gethostname syn keyword octaveFunction contained getenv geteuid getfield getgid getgrent
syn keyword octaveFunction contained getpgrp getpid getppid getpwent getpwnam syn keyword octaveFunction contained getgrgid getgrnam gethostname getpgrp
syn keyword octaveFunction contained getpid getppid getpref getpwent getpwnam
syn keyword octaveFunction contained getpwuid getrusage getuid ginput givens syn keyword octaveFunction contained getpwuid getrusage getuid ginput givens
syn keyword octaveFunction contained glob glpk glpkmex gls gmap40 gmres gmtime syn keyword octaveFunction contained glob glpk gls gmap40 gmres gmtime gplot
syn keyword octaveFunction contained gplot gradient graphics_toolkit gray syn keyword octaveFunction contained grabcode gradient gray gray2ind grid
syn keyword octaveFunction contained gray2ind grid griddata griddata3 syn keyword octaveFunction contained griddata griddata3 griddatan gt gtext
syn keyword octaveFunction contained griddatan gt gtext gunzip gzip hadamard syn keyword octaveFunction contained guidata guihandles gunzip gzip hadamard
syn keyword octaveFunction contained hamming hankel hanning hess hex2dec syn keyword octaveFunction contained hamming hankel hanning hash hdl2struct
syn keyword octaveFunction contained hex2num hggroup hidden hilb hist histc syn keyword octaveFunction contained helpdlg hess hex2dec hex2num hggroup
syn keyword octaveFunction contained hgload hgsave hidden hilb hist histc
syn keyword octaveFunction contained home horzcat hot hotelling_test syn keyword octaveFunction contained home horzcat hot hotelling_test
syn keyword octaveFunction contained hotelling_test_2 housh hsv hsv2rgb hurst syn keyword octaveFunction contained hotelling_test_2 housh hsv hsv2rgb hurst
syn keyword octaveFunction contained hygecdf hygeinv hygepdf hygernd hypot syn keyword octaveFunction contained hygecdf hygeinv hygepdf hygernd hypot
syn keyword octaveFunction contained idivide ifelse ifft ifft2 ifftn ifftshift syn keyword octaveFunction contained ichol idivide ifelse ifft ifft2 ifftn
syn keyword octaveFunction contained imag image imagesc imfinfo imread imshow syn keyword octaveFunction contained ifftshift ilu im2double im2frame imag
syn keyword octaveFunction contained imwrite ind2gray ind2rgb ind2sub index syn keyword octaveFunction contained image imagesc imfinfo imformats
syn keyword octaveFunction contained importdata imread imshow imwrite
syn keyword octaveFunction contained ind2gray ind2rgb ind2sub index
syn keyword octaveFunction contained inferiorto info inline inpolygon input syn keyword octaveFunction contained inferiorto info inline inpolygon input
syn keyword octaveFunction contained inputname int16 int2str int32 int64 int8 syn keyword octaveFunction contained inputParser inputdlg inputname int16
syn keyword octaveFunction contained interp1 interp1q interp2 interp3 interpft syn keyword octaveFunction contained int2str int32 int64 int8 interp1 interp2
syn keyword octaveFunction contained interpn intersect intmax intmin syn keyword octaveFunction contained interp3 interpft interpn intersect
syn keyword octaveFunction contained intwarning inv inverse invhilb ipermute syn keyword octaveFunction contained intmax intmin inv inverse invhilb
syn keyword octaveFunction contained iqr is_absolute_filename syn keyword octaveFunction contained ipermute iqr is_absolute_filename
syn keyword octaveFunction contained is_duplicate_entry is_global is_leap_year syn keyword octaveFunction contained is_dq_string is_function_handle
syn keyword octaveFunction contained is_rooted_relative_filename syn keyword octaveFunction contained is_leap_year is_rooted_relative_filename
syn keyword octaveFunction contained is_valid_file_id isa isalnum isalpha syn keyword octaveFunction contained is_sq_string is_valid_file_id isa
syn keyword octaveFunction contained isappdata isargout isascii isbool iscell syn keyword octaveFunction contained isalnum isalpha isappdata isargout
syn keyword octaveFunction contained iscellstr ischar iscntrl iscolumn syn keyword octaveFunction contained isascii isaxes isbanded isbool iscell
syn keyword octaveFunction contained iscommand iscomplex isdebugmode syn keyword octaveFunction contained iscellstr ischar iscntrl iscolormap
syn keyword octaveFunction contained isdefinite isdeployed isdigit isdir syn keyword octaveFunction contained iscolumn iscomplex isdebugmode
syn keyword octaveFunction contained isempty isequal isequalwithequalnans syn keyword octaveFunction contained isdefinite isdeployed isdiag isdigit
syn keyword octaveFunction contained isfield isfigure isfinite isfloat syn keyword octaveFunction contained isdir isempty isequal isequaln isfield
syn keyword octaveFunction contained isglobal isgraph ishandle ishermitian syn keyword octaveFunction contained isfigure isfinite isfloat isglobal
syn keyword octaveFunction contained ishghandle isieee isindex isinf isinteger syn keyword octaveFunction contained isgraph isguirunning ishandle
syn keyword octaveFunction contained iskeyword isletter islogical islower syn keyword octaveFunction contained ishermitian ishghandle isieee isindex
syn keyword octaveFunction contained ismac ismatrix ismember ismethod isna syn keyword octaveFunction contained isinf isinteger isjava iskeyword
syn keyword octaveFunction contained isnan isnull isnumeric isobject isocolors syn keyword octaveFunction contained isletter islogical islower ismac
syn keyword octaveFunction contained isonormals isosurface ispc isprime syn keyword octaveFunction contained ismatrix ismember ismethod isna isnan
syn keyword octaveFunction contained isprint isprop ispunct israwcommand syn keyword octaveFunction contained isnull isnumeric isobject isocaps
syn keyword octaveFunction contained isocolors isonormals isosurface ispc
syn keyword octaveFunction contained ispref isprime isprint isprop ispunct
syn keyword octaveFunction contained isreal isrow isscalar issorted isspace syn keyword octaveFunction contained isreal isrow isscalar issorted isspace
syn keyword octaveFunction contained issparse issquare isstr isstrprop syn keyword octaveFunction contained issparse issquare isstr isstrprop
syn keyword octaveFunction contained isstruct issymmetric isunix isupper syn keyword octaveFunction contained isstruct issymmetric istril istriu
syn keyword octaveFunction contained isvarname isvector isxdigit jet kbhit syn keyword octaveFunction contained isunix isupper isvarname isvector
syn keyword octaveFunction contained kendall keyboard kill syn keyword octaveFunction contained isxdigit java2mat javaArray javaMethod
syn keyword octaveFunction contained javaObject java_get java_set javaaddpath
syn keyword octaveFunction contained javachk javaclasspath javamem javarmpath
syn keyword octaveFunction contained jet kbhit kendall keyboard kill
syn keyword octaveFunction contained kolmogorov_smirnov_cdf syn keyword octaveFunction contained kolmogorov_smirnov_cdf
syn keyword octaveFunction contained kolmogorov_smirnov_test syn keyword octaveFunction contained kolmogorov_smirnov_test
syn keyword octaveFunction contained kolmogorov_smirnov_test_2 kron syn keyword octaveFunction contained kolmogorov_smirnov_test_2 kron
syn keyword octaveFunction contained kruskal_wallis_test krylov krylovb syn keyword octaveFunction contained kruskal_wallis_test krylov kurtosis
syn keyword octaveFunction contained kurtosis laplace_cdf laplace_inv syn keyword octaveFunction contained laplace_cdf laplace_inv laplace_pdf
syn keyword octaveFunction contained laplace_pdf laplace_rnd lasterr lasterror syn keyword octaveFunction contained laplace_rnd lasterr lasterror lastwarn
syn keyword octaveFunction contained lastwarn lchol lcm ldivide le legend syn keyword octaveFunction contained lcm ldivide le legend legendre length
syn keyword octaveFunction contained legendre length lgamma license lin2mu syn keyword octaveFunction contained lgamma license light lighting lin2mu
syn keyword octaveFunction contained line link linkprop linspace syn keyword octaveFunction contained line lines link linkaxes linkprop
syn keyword octaveFunction contained list_in_columns list_primes loadaudio syn keyword octaveFunction contained linsolve linspace list_in_columns
syn keyword octaveFunction contained loadimage loadobj localtime log log10 syn keyword octaveFunction contained list_primes listdlg loadaudio loadobj
syn keyword octaveFunction contained log1p log2 logical logistic_cdf syn keyword octaveFunction contained localfunctions localtime log log10 log1p
syn keyword octaveFunction contained logistic_inv logistic_pdf syn keyword octaveFunction contained log2 logical logistic_cdf logistic_inv
syn keyword octaveFunction contained logistic_regression logistic_rnd logit syn keyword octaveFunction contained logistic_pdf logistic_regression
syn keyword octaveFunction contained loglog loglogerr logm logncdf logninv syn keyword octaveFunction contained logistic_rnd logit loglog loglogerr logm
syn keyword octaveFunction contained lognpdf lognrnd logspace lookup lower syn keyword octaveFunction contained logncdf logninv lognpdf lognrnd logspace
syn keyword octaveFunction contained lsode lsode_options lsqnonneg lstat lt lu syn keyword octaveFunction contained lookup lower lscov lsode lsode_options
syn keyword octaveFunction contained luinc luupdate magic mahalanobis syn keyword octaveFunction contained lsqnonneg lstat lt lu luinc luupdate
syn keyword octaveFunction contained make_absolute_filename manova syn keyword octaveFunction contained magic mahalanobis make_absolute_filename
syn keyword octaveFunction contained mark_as_command mark_as_rawcommand syn keyword octaveFunction contained manova mat2cell mat2str material
syn keyword octaveFunction contained mat2cell mat2str matrix_type max syn keyword octaveFunction contained matrix_type max mcnemar_test md5sum mean
syn keyword octaveFunction contained mcnemar_test md5sum mean meansq median syn keyword octaveFunction contained meansq median menu merge mesh meshc
syn keyword octaveFunction contained menu merge mesh meshc meshgrid meshz syn keyword octaveFunction contained meshgrid meshz metaclass methods mex
syn keyword octaveFunction contained methods mex mexext mfilename mgorth min syn keyword octaveFunction contained mexext mfilename mgorth min minus
syn keyword octaveFunction contained minus mislocked mkdir mkfifo mkpp mkstemp syn keyword octaveFunction contained mislocked mkdir mkfifo mkpp mkstemp
syn keyword octaveFunction contained mktime mldivide mlock mod mode moment syn keyword octaveFunction contained mktime mldivide mlock mod mode moment
syn keyword octaveFunction contained movefile mpoles mpower mrdivide mtimes syn keyword octaveFunction contained movefile mpoles mpower mrdivide msgbox
syn keyword octaveFunction contained mu2lin munlock namelengthmax nargchk syn keyword octaveFunction contained mtimes mu2lin munlock nargchk narginchk
syn keyword octaveFunction contained nargoutchk native_float_format nbincdf syn keyword octaveFunction contained nargoutchk nbincdf nbininv nbinpdf
syn keyword octaveFunction contained nbininv nbinpdf nbinrnd nchoosek ndgrid syn keyword octaveFunction contained nbinrnd nchoosek ndgrid ndims ne newplot
syn keyword octaveFunction contained ndims ne newplot news nextpow2 nfields syn keyword octaveFunction contained news nextpow2 nfields nnz nonzeros norm
syn keyword octaveFunction contained nnz nonzeros norm normcdf normest norminv syn keyword octaveFunction contained normcdf normest normest1 norminv normpdf
syn keyword octaveFunction contained normpdf normrnd not now nproc nth_element syn keyword octaveFunction contained normrnd not now nproc nth_element
syn keyword octaveFunction contained nthroot ntsc2rgb null num2cell num2hex syn keyword octaveFunction contained nthargout nthroot ntsc2rgb null num2cell
syn keyword octaveFunction contained num2str numel nzmax ocean syn keyword octaveFunction contained num2hex num2str numel numfields nzmax
syn keyword octaveFunction contained octave_config_info octave_tmp_file_name syn keyword octaveFunction contained ocean octave_config_info
syn keyword octaveFunction contained ols onCleanup onenormest ones optimget syn keyword octaveFunction contained octave_tmp_file_name ode23 ode45 odeget
syn keyword octaveFunction contained optimset or orderfields orient orth pack syn keyword octaveFunction contained odeplot odeset ols onCleanup onenormest
syn keyword octaveFunction contained paren pareto parseparams pascal patch syn keyword octaveFunction contained ones open optimget optimset or
syn keyword octaveFunction contained path pathdef pause pbaspect pcg pchip syn keyword octaveFunction contained orderfields ordschur orient orth
syn keyword octaveFunction contained pclose pcolor pcr peaks periodogram perl syn keyword octaveFunction contained ostrsplit pack padecoef pan paren pareto
syn keyword octaveFunction contained perms permute perror pie pie3 pink pinv syn keyword octaveFunction contained parseparams pascal patch pathdef pause
syn keyword octaveFunction contained pipe planerot playaudio plot plot3 syn keyword octaveFunction contained pbaspect pcg pchip pclose pcolor pcr
syn keyword octaveFunction contained plotmatrix plotyy plus poisscdf poissinv syn keyword octaveFunction contained peaks periodogram perl perms permute pie
syn keyword octaveFunction contained poisspdf poissrnd pol2cart polar poly syn keyword octaveFunction contained pie3 pink pinv pipe planerot playaudio
syn keyword octaveFunction contained polyaffine polyarea polyder polyderiv syn keyword octaveFunction contained plot plot3 plotmatrix plotyy plus
syn keyword octaveFunction contained polyfit polygcd polyint polyout syn keyword octaveFunction contained poisscdf poissinv poisspdf poissrnd
syn keyword octaveFunction contained polyreduce polyval polyvalm popen popen2 syn keyword octaveFunction contained pol2cart polar poly polyaffine polyarea
syn keyword octaveFunction contained postpad pow2 power powerset ppder ppint syn keyword octaveFunction contained polyder polyeig polyfit polygcd polyint
syn keyword octaveFunction contained ppjumps ppplot ppval pqpnonneg prctile syn keyword octaveFunction contained polyout polyreduce polyval polyvalm
syn keyword octaveFunction contained prepad primes print print_usage printf syn keyword octaveFunction contained popen popen2 postpad pow2 power powerset
syn keyword octaveFunction contained prism probit prod prop_test_2 putenv puts syn keyword octaveFunction contained ppder ppint ppjumps ppplot ppval
syn keyword octaveFunction contained qp qqplot qr qrdelete qrinsert qrshift syn keyword octaveFunction contained pqpnonneg prctile preferences prepad
syn keyword octaveFunction contained qrupdate quad quad_options quadcc quadgk syn keyword octaveFunction contained primes print print_usage printd printf
syn keyword octaveFunction contained quadl quadv quantile quit quiver quiver3 syn keyword octaveFunction contained prism probit prod profexplore profexport
syn keyword octaveFunction contained qz qzhess rainbow rand rande randg randi syn keyword octaveFunction contained profile profshow prop_test_2 psi publish
syn keyword octaveFunction contained randn randp randperm range rank ranks rat syn keyword octaveFunction contained putenv puts python qmr qp qqplot qr
syn keyword octaveFunction contained rats rcond rdivide syn keyword octaveFunction contained qrdelete qrinsert qrshift qrupdate quad
syn keyword octaveFunction contained re_read_readline_init_file syn keyword octaveFunction contained quad_options quadcc quadgk quadl quadv
syn keyword octaveFunction contained read_readline_init_file readdir readlink syn keyword octaveFunction contained quantile questdlg quit quiver quiver3 qz
syn keyword octaveFunction contained real reallog realpow realsqrt record syn keyword octaveFunction contained qzhess rad2deg rainbow rand rande randg
syn keyword octaveFunction contained rectangle rectint refresh refreshdata syn keyword octaveFunction contained randi randn randp randperm range rank
syn keyword octaveFunction contained regexp regexpi regexprep regexptranslate syn keyword octaveFunction contained ranks rat rats rcond rdivide readdir
syn keyword octaveFunction contained rehash rem remove_input_event_hook rename syn keyword octaveFunction contained readline_re_read_init_file
syn keyword octaveFunction contained repelems replot repmat reset reshape syn keyword octaveFunction contained readline_read_init_file readlink real
syn keyword octaveFunction contained residue resize restoredefaultpath rethrow syn keyword octaveFunction contained reallog realpow realsqrt record
syn keyword octaveFunction contained rgb2hsv rgb2ind rgb2ntsc ribbon rindex syn keyword octaveFunction contained rectangle rectint recycle reducepatch
syn keyword octaveFunction contained rmappdata rmdir rmfield rmpath roots rose syn keyword octaveFunction contained reducevolume refresh refreshdata regexp
syn keyword octaveFunction contained rosser rot90 rotdim round roundb rows syn keyword octaveFunction contained regexpi regexprep regexptranslate
syn keyword octaveFunction contained rref rsf2csf run_count run_test rundemos syn keyword octaveFunction contained register_graphics_toolkit rehash rem
syn keyword octaveFunction contained runlength runtests saveas saveaudio syn keyword octaveFunction contained remove_input_event_hook rename repelems
syn keyword octaveFunction contained saveimage saveobj savepath scanf scatter syn keyword octaveFunction contained repmat reset reshape residue resize
syn keyword octaveFunction contained scatter3 schur sec secd sech semicolon syn keyword octaveFunction contained restoredefaultpath rethrow rgb2hsv
syn keyword octaveFunction contained semilogx semilogxerr semilogy semilogyerr syn keyword octaveFunction contained rgb2ind rgb2ntsc rgbplot ribbon rindex
syn keyword octaveFunction contained set setappdata setaudio setdiff setenv syn keyword octaveFunction contained rmappdata rmdir rmfield rmpath rmpref
syn keyword octaveFunction contained setfield setgrent setpwent setstr setxor syn keyword octaveFunction contained roots rose rosser rot90 rotate rotate3d
syn keyword octaveFunction contained shading shell_cmd shift shiftdim sign syn keyword octaveFunction contained rotdim round roundb rows rref rsf2csf
syn keyword octaveFunction contained sign_test sin sinc sind sinetone sinewave syn keyword octaveFunction contained run_count run_test rundemos runlength
syn keyword octaveFunction contained single sinh size size_equal sizemax syn keyword octaveFunction contained runtests saveas saveaudio saveobj
syn keyword octaveFunction contained sizeof skewness sleep slice sombrero sort syn keyword octaveFunction contained savepath scanf scatter scatter3 schur
syn keyword octaveFunction contained sortrows source spalloc sparse spatan2 syn keyword octaveFunction contained sec secd sech semicolon semilogx
syn keyword octaveFunction contained spaugment spchol spchol2inv spcholinv syn keyword octaveFunction contained semilogxerr semilogy semilogyerr set
syn keyword octaveFunction contained spconvert spcumprod spcumsum spdet spdiag syn keyword octaveFunction contained setappdata setaudio setdiff setenv
syn keyword octaveFunction contained spdiags spearman spectral_adf syn keyword octaveFunction contained setfield setgrent setpref setpwent
syn keyword octaveFunction contained spectral_xdf specular speed spencer speye syn keyword octaveFunction contained setxor shading shift shiftdim
syn keyword octaveFunction contained spfind spfun sph2cart sphcat sphere syn keyword octaveFunction contained shrinkfaces sign sign_test signbit sin
syn keyword octaveFunction contained spinmap spinv spkron splchol spline split syn keyword octaveFunction contained sinc sind sinetone sinewave single sinh
syn keyword octaveFunction contained splu spmax spmin spones spparms spprod syn keyword octaveFunction contained size size_equal sizemax sizeof skewness
syn keyword octaveFunction contained spqr sprand sprandn sprandsym sprank syn keyword octaveFunction contained sleep slice smooth3 sombrero sort
syn keyword octaveFunction contained spring sprintf spstats spsum spsumsq syn keyword octaveFunction contained sortrows sound soundsc source spalloc
syn keyword octaveFunction contained spvcat spy sqp sqrt sqrtm squeeze sscanf syn keyword octaveFunction contained sparse spaugment spconvert spdiags
syn keyword octaveFunction contained stairs stat statistics std stdnormal_cdf syn keyword octaveFunction contained spearman spectral_adf spectral_xdf
syn keyword octaveFunction contained stdnormal_inv stdnormal_pdf stdnormal_rnd syn keyword octaveFunction contained specular speed spencer speye spfun
syn keyword octaveFunction contained stem stem3 stft str2double str2func syn keyword octaveFunction contained sph2cart sphere spinmap spline splinefit
syn keyword octaveFunction contained str2mat str2num strcat strchr strcmp syn keyword octaveFunction contained spones spparms sprand sprandn sprandsym
syn keyword octaveFunction contained strcmpi strerror strfind strftime strjust syn keyword octaveFunction contained sprank spring sprintf spstats spy sqp
syn keyword octaveFunction contained strmatch strncmp strncmpi strptime syn keyword octaveFunction contained sqrt sqrtm squeeze sscanf stairs stat
syn keyword octaveFunction contained strread strrep strsplit strtok strtrim syn keyword octaveFunction contained statistics std stdnormal_cdf
syn keyword octaveFunction contained strtrunc struct struct2cell structfun syn keyword octaveFunction contained stdnormal_inv stdnormal_pdf
syn keyword octaveFunction contained strvcat studentize sub2ind subplot syn keyword octaveFunction contained stdnormal_rnd stem stem3 stemleaf stft
syn keyword octaveFunction contained subsasgn subsindex subspace subsref syn keyword octaveFunction contained str2double str2func str2num strcat
syn keyword octaveFunction contained substr substruct sum summer sumsq syn keyword octaveFunction contained strchr strcmp strcmpi strfind strftime
syn keyword octaveFunction contained superiorto surf surface surfc surfl syn keyword octaveFunction contained strjoin strjust strmatch strncmp
syn keyword octaveFunction contained surfnorm svd svds swapbytes syl syn keyword octaveFunction contained strncmpi strptime strread strrep
syn keyword octaveFunction contained sylvester_matrix symamd symbfact symlink syn keyword octaveFunction contained strsplit strtok strtrim strtrunc struct
syn keyword octaveFunction contained struct2cell struct2hdl structfun strvcat
syn keyword octaveFunction contained sub2ind subplot subsasgn subsindex
syn keyword octaveFunction contained subspace subsref substr substruct sum
syn keyword octaveFunction contained summer sumsq superiorto surf surface
syn keyword octaveFunction contained surfc surfl surfnorm svd svds swapbytes
syn keyword octaveFunction contained syl sylvester symamd symbfact symlink
syn keyword octaveFunction contained symrcm symvar synthesis system t_test syn keyword octaveFunction contained symrcm symvar synthesis system t_test
syn keyword octaveFunction contained t_test_2 t_test_regression table tan tand syn keyword octaveFunction contained t_test_2 t_test_regression table tan
syn keyword octaveFunction contained tanh tar tcdf tempdir tempname syn keyword octaveFunction contained tand tanh tar tcdf tempdir tempname
syn keyword octaveFunction contained terminal_size text textread textscan tic syn keyword octaveFunction contained terminal_size tetramesh text textread
syn keyword octaveFunction contained tilde_expand time times tinv title syn keyword octaveFunction contained textscan tic tilde_expand time times
syn keyword octaveFunction contained tmpfile tmpnam toascii toc toeplitz syn keyword octaveFunction contained tinv title tmpfile tmpnam toascii toc
syn keyword octaveFunction contained tolower toupper tpdf trace transpose syn keyword octaveFunction contained toeplitz tolower toupper tpdf trace
syn keyword octaveFunction contained trapz treelayout treeplot tril trimesh syn keyword octaveFunction contained transpose trapz treelayout treeplot tril
syn keyword octaveFunction contained triplequad triplot trisurf triu trnd syn keyword octaveFunction contained trimesh triplequad triplot trisurf triu
syn keyword octaveFunction contained tsearch tsearchn typecast typeinfo u_test syn keyword octaveFunction contained trnd tsearch tsearchn typecast typeinfo
syn keyword octaveFunction contained uigetdir uigetfile uimenu uint16 uint32 syn keyword octaveFunction contained u_test uibuttongroup uicontextmenu
syn keyword octaveFunction contained uint64 uint8 uiputfile umask uminus uname syn keyword octaveFunction contained uicontrol uigetdir uigetfile uimenu
syn keyword octaveFunction contained undo_string_escapes unidcdf unidinv syn keyword octaveFunction contained uint16 uint32 uint64 uint8 uipanel
syn keyword octaveFunction contained unidpdf unidrnd unifcdf unifinv unifpdf syn keyword octaveFunction contained uipushtool uiputfile uiresume
syn keyword octaveFunction contained unifrnd unimplemented union unique unix syn keyword octaveFunction contained uitoggletool uitoolbar uiwait umask
syn keyword octaveFunction contained unlink unmark_command unmark_rawcommand syn keyword octaveFunction contained uminus uname undo_string_escapes unidcdf
syn keyword octaveFunction contained unmkpp unpack untabify untar unwrap unzip syn keyword octaveFunction contained unidinv unidpdf unidrnd unifcdf unifinv
syn keyword octaveFunction contained uplus upper urlread urlwrite usage usleep syn keyword octaveFunction contained unifpdf unifrnd union unique unix unlink
syn keyword octaveFunction contained validatestring values vander var var_test syn keyword octaveFunction contained unmkpp unpack unsetenv untabify untar
syn keyword octaveFunction contained vec vech vectorize ver version vertcat syn keyword octaveFunction contained unwrap unzip uplus upper urlread
syn keyword octaveFunction contained view voronoi voronoin waitforbuttonpress syn keyword octaveFunction contained urlwrite usage usejava usleep
syn keyword octaveFunction contained waitpid warning warning_ids warranty syn keyword octaveFunction contained validateattributes validatestring vander
syn keyword octaveFunction contained var var_test vec vech vectorize ver
syn keyword octaveFunction contained version vertcat view viridis voronoi
syn keyword octaveFunction contained voronoin waitbar waitfor
syn keyword octaveFunction contained waitforbuttonpress waitpid warndlg
syn keyword octaveFunction contained warning warning_ids warranty waterfall
syn keyword octaveFunction contained wavread wavwrite wblcdf wblinv wblpdf syn keyword octaveFunction contained wavread wavwrite wblcdf wblinv wblpdf
syn keyword octaveFunction contained wblrnd weekday weibcdf weibinv weibpdf syn keyword octaveFunction contained wblrnd weekday welch_test white whitebg
syn keyword octaveFunction contained weibrnd welch_test white whitebg wienrnd syn keyword octaveFunction contained wienrnd wilcoxon_test wilkinson winter
syn keyword octaveFunction contained wilcoxon_test wilkinson winter xlabel syn keyword octaveFunction contained xlabel xlim xor yes_or_no ylabel ylim
syn keyword octaveFunction contained xlim xor yes_or_no ylabel ylim yulewalker syn keyword octaveFunction contained yulewalker z_test z_test_2 zeros zip
syn keyword octaveFunction contained z_test z_test_2 zeros zip zlabel zlim syn keyword octaveFunction contained zlabel zlim zoom zscore
" Add functions defined in .m file being read to list of highlighted functions " Add functions defined in .m file being read to list of highlighted functions
function! s:CheckForFunctions() function! s:CheckForFunctions()
@@ -499,7 +608,7 @@ syn match octaveSetVar "\<\h\w*\s*("me=e-1 contains=@AllFuncSetCmd
syn match octaveQueryVar "\<\h\w*\s*\((\s*)\)\@=" contains=@AllFuncVarCmd syn match octaveQueryVar "\<\h\w*\s*\((\s*)\)\@=" contains=@AllFuncVarCmd
" Don't highlight Octave keywords on LHS of '=', these are user vars " Don't highlight Octave keywords on LHS of '=', these are user vars
syn match octaveUserVar "\<\h\w*\ze[^<>!~=]\{-}==\@!" syn match octaveUserVar "\<\h\w*\ze[^<>!~="']\{-}==\@!"
syn match octaveUserVar "\<\h\w*\s*[<>!~=]=" contains=octaveVariable syn match octaveUserVar "\<\h\w*\s*[<>!~=]=" contains=octaveVariable
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
@@ -523,8 +632,8 @@ syn match octaveRelationalOperator "[<>]=\?"
"syn match octaveIdentifier "\<\h\w*\>" "syn match octaveIdentifier "\<\h\w*\>"
" Strings " Strings
syn region octaveString start=/'/ end=/'/ skip=/\\'/ contains=octaveLineContinuation,@Spell syn region octaveString start=/'/ end=/'/ skip=/''/ contains=octaveLineContinuation,@Spell
syn region octaveString start=/"/ end=/"/ skip=/\\"/ contains=octaveLineContinuation,@Spell syn region octaveString start=/"/ end=/"/ skip=/\\./re=e+1 contains=octaveLineContinuation,@Spell
" Standard numbers " Standard numbers
syn match octaveNumber "\<\d\+[ij]\?\>" syn match octaveNumber "\<\d\+[ij]\?\>"
@@ -532,10 +641,14 @@ syn match octaveNumber "\<\d\+[ij]\?\>"
syn match octaveFloat "\<\d\+\(\.\d*\)\?\([edED][-+]\?\d\+\)\?[ij]\?\>" syn match octaveFloat "\<\d\+\(\.\d*\)\?\([edED][-+]\?\d\+\)\?[ij]\?\>"
" Floating point number, starting with a dot, optional exponent " Floating point number, starting with a dot, optional exponent
syn match octaveFloat "\.\d\+\([edED][-+]\?\d\+\)\?[ij]\?\>" syn match octaveFloat "\.\d\+\([edED][-+]\?\d\+\)\?[ij]\?\>"
" Hex numbers
syn match octaveNumber "\<0[xX][0-9a-fA-F][0-9a-fA-F]\+\>"
" Binary numbers
syn match octaveNumber "\<0[bB][01][01]\+\>"
" Delimiters and transpose character " Delimiters and transpose character
syn match octaveDelimiter "[][(){}@]" syn match octaveDelimiter "[][(){}@]"
syn match octaveTransposeOperator "[])[:alnum:]._]\@<='" syn match octaveTransposeOperator "[])}[:alnum:]._]\@<='"
" Tabs, for possibly highlighting as errors " Tabs, for possibly highlighting as errors
syn match octaveTab "\t" syn match octaveTab "\t"
@@ -575,6 +688,7 @@ if version >= 508 || !exists("did_octave_syntax_inits")
HiLink octaveBeginKeyword Conditional HiLink octaveBeginKeyword Conditional
HiLink octaveElseKeyword Conditional HiLink octaveElseKeyword Conditional
HiLink octaveEndKeyword Conditional HiLink octaveEndKeyword Conditional
HiLink octaveVarKeyword Conditional
HiLink octaveReserved Conditional HiLink octaveReserved Conditional
HiLink octaveStatement Statement HiLink octaveStatement Statement
@@ -613,6 +727,6 @@ endif
let b:current_syntax = "octave" let b:current_syntax = "octave"
"EOF vim: ts=8 noet tw=100 sw=8 sts=0 "EOF vim: ts=2 et tw=80 sw=2 sts=0
endif endif

View File

@@ -6,7 +6,7 @@ endif
" need %{vars}% " need %{vars}%
" env: [[CAML_LD_LIBRARY_PATH = "%{lib}%/stublibs"]] " env: [[CAML_LD_LIBRARY_PATH = "%{lib}%/stublibs"]]
syn keyword opamKeyword1 remove depends depopts conflicts env packages patches version maintainer tags license homepage authors doc install author available name depexts substs synopsis description syn keyword opamKeyword1 remove depends pin-depends depopts conflicts env packages patches version maintainer tags license homepage authors doc install author available name depexts substs synopsis description
syn match opamKeyword2 "\v(bug-reports|post-messages|ocaml-version|opam-version|dev-repo|build-test|build-doc|build)" syn match opamKeyword2 "\v(bug-reports|post-messages|ocaml-version|opam-version|dev-repo|build-test|build-doc|build)"
syn keyword opamTodo FIXME NOTE NOTES TODO XXX contained syn keyword opamTodo FIXME NOTE NOTES TODO XXX contained

View File

@@ -6,7 +6,7 @@ scriptencoding utf-8
" Maintainer: Anders Thøgersen <first name at bladre dot dk> " Maintainer: Anders Thøgersen <first name at bladre dot dk>
" License: VIM LICENSE " License: VIM LICENSE
if exists('b:current_syntax') if exists('b:current_syntax')
finish " finish
endif endif
if v:version < 600 if v:version < 600
@@ -20,26 +20,36 @@ let b:current_syntax = 'plantuml'
syntax sync minlines=100 syntax sync minlines=100
syntax match plantumlPreProc /\%(\%(^@start\|^@end\)\%(dot\|mindmap\|uml\|salt\|wbs\)\)\|!\%(define\|definelong\|else\|enddefinelong\|endif\|exit\|if\|ifdef\|ifndef\|include\|pragma\|undef\)\s*.*/ contains=plantumlDir syntax match plantumlPreProc /\%(\%(^@start\|^@end\)\%(dot\|mindmap\|uml\|salt\|wbs\|gantt\)\)\|!\%(define\|definelong\|else\|enddefinelong\|endif\|exit\|if\|ifdef\|ifndef\|include\|pragma\|undef\|gantt\)\s*.*/ contains=plantumlDir
syntax region plantumlDir start=/\s\+/ms=s+1 end=/$/ contained syntax region plantumlDir start=/\s\+/ms=s+1 end=/$/ contained
" type " type
" From 'java - jar plantuml.jar - language' results {{{
syntax keyword plantumlTypeKeyword abstract actor agent archimate artifact boundary card cloud component control syntax keyword plantumlTypeKeyword abstract actor agent archimate artifact boundary card cloud component control
syntax keyword plantumlTypeKeyword database diamond entity enum file folder frame node object package participant syntax keyword plantumlTypeKeyword database detach diamond entity enum file folder frame node object package
syntax keyword plantumlTypeKeyword queue rectangle stack state storage usecase syntax keyword plantumlTypeKeyword participant queue rectangle stack state storage usecase
" class and interface are defined as plantumlClassKeyword " class and interface are defined as plantumlClassKeyword
syntax keyword plantumlClassKeyword class interface syntax keyword plantumlClassKeyword class interface
"}}}
" Not in 'java - jar plantuml.jar - language' results
syntax keyword plantumlTypeKeyword concise robust
" keyword " keyword
" Exclude 'top to bottom direction' " From 'java - jar plantuml.jar - language' results {{{
" Since "syntax keyword" can handle only words, "top to bottom direction" is excluded.
syntax keyword plantumlKeyword accross activate again allow_mixing allowmixing also alt as autonumber bottom syntax keyword plantumlKeyword accross activate again allow_mixing allowmixing also alt as autonumber bottom
syntax keyword plantumlKeyword box break caption center create critical deactivate destroy down else elseif end syntax keyword plantumlKeyword box break caption center create critical deactivate destroy down else elseif end
syntax keyword plantumlKeyword endif endwhile footbox footer fork group header hide hnote if is kill left syntax keyword plantumlKeyword endif endwhile footbox footer fork group header hide hnote if is kill left in at are to the and
syntax keyword plantumlKeyword legend link loop mainframe namespace newpage note of on opt order over package syntax keyword plantumlKeyword legend link loop mainframe namespace newpage note of on opt order over package
syntax keyword plantumlKeyword page par partition ref repeat return right rnote rotate show skin skinparam syntax keyword plantumlKeyword page par partition ref repeat return right rnote rotate show skin skinparam
syntax keyword plantumlKeyword start stop title top up while syntax keyword plantumlKeyword start stop title top up while
" Not in 'java - jar plantuml.jar - language' output "}}}
syntax keyword plantumlKeyword then detach split sprite " Not in 'java - jar plantuml.jar - language' results
syntax keyword plantumlKeyword endlegend split sprite then
" gantt
syntax keyword plantumlTypeKeyword project monday tuesday wednesday thursday friday saturday sunday
syntax keyword plantumlKeyword starts ends start end closed day after colored lasts happens
syntax keyword plantumlCommentTODO XXX TODO FIXME NOTE contained syntax keyword plantumlCommentTODO XXX TODO FIXME NOTE contained
syntax match plantumlColor /#[0-9A-Fa-f]\{6\}\>/ syntax match plantumlColor /#[0-9A-Fa-f]\{6\}\>/
@@ -80,9 +90,9 @@ syntax region plantumlText oneline start=/\[/ms=s+1 end=/\]/me=s-1 contained
syntax match plantumlArrowDirectedLine /\([-.]\)\%(l\%[eft]\|r\%[ight]\|up\?\|d\%[own]\)\1/ contained syntax match plantumlArrowDirectedLine /\([-.]\)\%(l\%[eft]\|r\%[ight]\|up\?\|d\%[own]\)\1/ contained
" Note " Note and legend
syntax region plantumlNoteMultiLine start=/\%(^\s*[rh]\?note\)\@<=\s\%([^:"]\+$\)\@=/ end=/^\%(\s*end \?[rh]\?note$\)\@=/ contains=plantumlSpecialString,plantumlNoteMultiLineStart,plantumlTag syntax region plantumlNoteMultiLine start=/\%(^\s*[rh]\?\%(note\|legend\)\)\@<=\s\%([^:"]\+$\)\@=/ end=/^\%(\s*end\s*[rh]\?\%(note\|legend\)$\)\|endlegend\@=/ contains=plantumlSpecialString,plantumlNoteMultiLineStart,plantumlTag
syntax match plantumlNoteMultiLineStart /\%(^\s*[rh]\?note\)\@<=\s\%([^:]\+$\)/ contained contains=plantumlKeyword,plantumlColor,plantumlString,plantumlTag syntax match plantumlNoteMultiLineStart /\%(^\s*[rh]\?\%(note\|legend\)\)\@<=\s\%([^:]\+$\)/ contained contains=plantumlKeyword,plantumlColor,plantumlString,plantumlTag
" Class " Class
syntax region plantumlClass syntax region plantumlClass
@@ -136,6 +146,7 @@ syntax region plantumlText oneline matchgroup=plantumlSequenceDelay start=/^\.\{
" Usecase diagram " Usecase diagram
syntax match plantumlUsecaseActor /:.\{-1,}:/ contains=plantumlSpecialString syntax match plantumlUsecaseActor /:.\{-1,}:/ contains=plantumlSpecialString
" Mindmap diagram " Mindmap diagram
let s:mindmapHilightLinks = [ let s:mindmapHilightLinks = [
\ 'WarningMsg', 'Directory', 'Special', 'MoreMsg', 'Statement', 'Title', \ 'WarningMsg', 'Directory', 'Special', 'MoreMsg', 'Statement', 'Title',
@@ -143,18 +154,20 @@ let s:mindmapHilightLinks = [
\ 'Function', 'Todo' \ 'Function', 'Todo'
\ ] \ ]
syntax match plantumlMindmap1 /^[-+*][_<>]\?/ contained
let i = 1 let i = 1
let contained = [] let contained = []
while i < len(s:mindmapHilightLinks) while i < len(s:mindmapHilightLinks)
execute "syntax match plantumlMindmap" . i . " /^\\%(\\s\\|[-+*]\\)\\{" . (i - 1) . "}[-+*][_<>]\\?/ contained" execute 'syntax match plantumlMindmap' . i . ' /^\([-+*]\)\1\{' . (i - 1) . '}_\?\s\+/ contained'
execute "highlight default link plantumlMindmap" . i . " " . s:mindmapHilightLinks[i - 1] execute 'syntax match plantumlMindmap' . i . ' /^\s\{' . (i - 1) . '}\*_\?\s\+/ contained'
call add(contained, "plantumlMindmap" . i) execute 'highlight default link plantumlMindmap' . i . ' ' . s:mindmapHilightLinks[i - 1]
call add(contained, 'plantumlMindmap' . i)
let i = i + 1 let i = i + 1
endwhile endwhile
execute "syntax region plantumlMindmap oneline start=/^\\s*[-+*]_\\?/ end=/$/ contains=" . join(contained, ',') execute 'syntax region plantumlMindmap oneline start=/^\([-+*]\)\1*_\?\s/ end=/$/ contains=' . join(contained, ',')
" Markdown syntax
execute 'syntax region plantumlMindmap oneline start=/^\s*\*_\?\s/ end=/$/ contains=' . join(contained, ',')
" Skinparam keywords " Skinparam keywords
syntax case ignore syntax case ignore

View File

@@ -29,7 +29,8 @@ syn region javascriptParenthesisBlock start="(" end=")" contains=@htmlJavascrip
syn cluster htmlJavascript add=javascriptParenthesisBlock syn cluster htmlJavascript add=javascriptParenthesisBlock
syn region pugJavascript matchgroup=pugJavascriptOutputChar start="[!&]\==\|\~" skip=",\s*$" end="$" contained contains=@htmlJavascript keepend syn region pugJavascript matchgroup=pugJavascriptOutputChar start="[!&]\==\|\~" skip=",\s*$" end="$" contained contains=@htmlJavascript keepend
syn region pugJavascript matchgroup=pugJavascriptChar start="-" skip=",\s*$" end="$" contained contains=@htmlJavascript keepend syn region pugJavascript matchgroup=pugJavascriptChar start="\(^\|\s\)\@<=-" skip=",\s*$" end="$" contained contains=@htmlJavascript keepend
syn cluster pugTop contains=pugBegin,pugComment,pugHtmlComment,pugJavascript syn cluster pugTop contains=pugBegin,pugComment,pugHtmlComment,pugJavascript
syn match pugBegin "^\s*\%([<>]\|&[^=~ ]\)\@!" nextgroup=pugTag,pugClassChar,pugIdChar,pugPlainChar,pugJavascript,pugScriptConditional,pugScriptStatement,pugPipedText syn match pugBegin "^\s*\%([<>]\|&[^=~ ]\)\@!" nextgroup=pugTag,pugClassChar,pugIdChar,pugPlainChar,pugJavascript,pugScriptConditional,pugScriptStatement,pugPipedText
syn match pugTag "+\?[[:alnum:]_-]\+\%(:\w\+\)\=" contained contains=htmlTagName,htmlSpecialTagName,pugJavascript nextgroup=@pugComponent syn match pugTag "+\?[[:alnum:]_-]\+\%(:\w\+\)\=" contained contains=htmlTagName,htmlSpecialTagName,pugJavascript nextgroup=@pugComponent

View File

@@ -1,173 +1,439 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1 if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1
" puppet syntax file " Language: Puppet
" Filename: puppet.vim " Maintainer: Voxpupuli
" Language: puppet configuration file " URL: https://github.com/voxpupuli/vim-puppet
" Maintainer: Luke Kanies <luke@madstop.com>
" URL:
" Last Change:
" Version:
" "
" Thanks to Doug Kearns who maintains the vim syntax file for Ruby. Many constructs, including interpolation
" and heredoc was copied from ruby and then modified to comply with Puppet syntax.
" Copied from the cfengine, ruby, and perl syntax files " Prelude {{{1
" For version 5.x: Clear all syntax items if exists("b:current_syntax")
" For version 6.x: Quit when a syntax file was already loaded
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish finish
endif endif
" match class/definition/node declarations " this file uses line continuations
syn region puppetDefine start="^\s*\(class\|define\|node\)\s" end="{" contains=puppetDefType,puppetDefName,puppetDefArguments,puppetNodeRe,@NoSpell let s:cpo_sav = &cpo
syn keyword puppetDefType class define node inherits contained set cpo&vim
syn region puppetDefArguments start="(" end=")" contained contains=puppetType,puppetArgument,puppetString,puppetComment,puppetMultilineComment
syn match puppetArgument "\w\+" contained
syn match puppetArgument "\$\w\+" contained
syn match puppetArgument "'[^']+'" contained
syn match puppetArgument '"[^"]+"' contained
syn keyword puppetType Any Array Boolean Callable Catalogentry Collection Data Default Enum Float Hash Integer Numeric Optional Pattern Regexp Scalar Sensitive String Struct Tuple Type Undef Variant
syn match puppetDefName "\w\+" contained
syn match puppetNodeRe "/.*/" contained
" match 'foo' in 'class foo { ...' syn cluster puppetNotTop contains=@puppetExtendedStringSpecial,@puppetRegexpSpecial,@puppetDeclaration,puppetConditional,puppetExceptional,puppetMethodExceptional,puppetTodo
" match 'foo::bar' in 'class foo::bar { ...'
" match 'Foo::Bar' in 'Foo::Bar["..."]
"FIXME: "Foo-bar" doesn't get highlighted as expected, although "foo-bar" does.
syn match puppetInstance "[A-Za-z0-9_-]\+\(::[A-Za-z0-9_-]\+\)*\s*{" contains=puppetTypeName,puppetTypeDefault,@NoSpell
syn match puppetInstance "[A-Z][a-z_-]\+\(::[A-Z][a-z_-]\+\)*\s*[[{]" contains=puppetTypeName,puppetTypeDefault,@NoSpell
syn match puppetInstance "[A-Z][a-z_-]\+\(::[A-Z][a-z_-]\+\)*\s*<\?<|" contains=puppetTypeName,puppetTypeDefault,@NoSpell
syn match puppetTypeName "[a-z]\w*" contained
syn match puppetTypeDefault "[A-Z]\w*" contained
syn match puppetParam "\(\w\+\|\*\)\s*\(=\|+\)>" contains=puppetTypeRArrow,puppetParamName syn match puppetSpaceError display excludenl "\s\+$"
syn match puppetParamRArrow "\(=\|+\)>" contained syn match puppetSpaceError display " \+\t"me=e-1
syn match puppetParamName "\(\w\+\|\*\)" contained contains=@NoSpell
syn match puppetVariable "$\(\(\(::\)\?\w\+\)\+\|{\(\(::\)\?\w\+\)\+}\)"
syn match puppetParen "("
syn match puppetParen ")"
syn match puppetBrace "{"
syn match puppetBrace "}"
syn match puppetBrack "\["
syn match puppetBrack "\]"
syn match puppetBrack "<|"
syn match puppetBrack "|>"
" match 'present' in 'ensure => present' " one character operators
" match '2755' in 'mode => 2755' syn match puppetOperator "[=><+/*%!.|@:,;?~-]"
" don't match 'bar' in 'foo => bar'
syn match puppetParam "\w\+\s*[=+]>\s*[a-z0-9]\+" contains=puppetParamString,puppetParamName
syn match puppetParamString "[=+]>\s*\w\+" contains=puppetParamKeyword,puppetParamSpecial,puppetParamDigits contained
syn keyword puppetParamKeyword present absent purged latest installed running stopped mounted unmounted role configured file directory link on_failure contained
syn keyword puppetParamSpecial true false undef contained
syn match puppetParamDigits "[0-9]\+"
" match 'template' in 'content => template("...")' " two character operators
syn match puppetParam "\w\+\s*[=+]>\s*\w\+\s*(" contains=puppetFunction,puppetParamName syn match puppetOperator "+=\|-=\|==\|!=\|=\~\|!\~\|>=\|<=\|<-\|<\~\|=>\|+>\|->\|\~>\|<<\||>\|@@"
" statements
syn region puppetFunction start="^\s*\(alert\|crit\|debug\|emerg\|err\|fail\|include\|info\|notice\|realize\|require\|search\|tag\|warning\)\s*(" end=")" contained contains=puppetString
" rvalues
syn region puppetFunction start="^\s*\(defined\|file\|fqdn_rand\|generate\|inline_template\|regsubst\|sha1\|shellquote\|split\|sprintf\|tagged\|template\|versioncmp\)\s*(" end=")" contained contains=puppetString
syn match puppetVariable "$[a-zA-Z0-9_:]\+" contains=@NoSpell " three character operators
syn match puppetVariable "${[a-zA-Z0-9_:'\[\]]\+}" contains=@NoSpell syn match puppetOperator "<<|\||>>"
" match anything between simple/double quotes. syn region puppetBracketOperator matchgroup=puppetDelimiter start="\[\s*" end="\s*]" contains=ALLBUT,@puppetNotTop
" don't match variables if preceded by a backslash. syn region puppetBraceOperator matchgroup=puppetDelimiter start="{\s*" end="\s*}" contains=ALLBUT,@puppetNotTop
syn region puppetString start=+'+ skip=+\\\\\|\\'+ end=+'+ syn region puppetParenOperator matchgroup=puppetDelimiter start="(\s*" end="\s*)" contains=ALLBUT,@puppetNotTop
syn region puppetString start=+@(\z\([^/)]*\)\(/[\\nts$uL]*\)\?)$+ end=+|-\? *\z1 *$+
syn region puppetString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=puppetVariable,puppetNotVariable
syn region puppetString start=+@("\z\([^/)]*\)"\(/[\\nts$uL]*\)\?)$+ end=+|-\? *\z1 *$+ contains=puppetVariable,puppetNotVariable
syn match puppetNotVariable "\\$\w\+" contained
syn match puppetNotVariable "\\${\w\+}" contained
" match keywords and control words except when used as a parameter " Expression Substitution and Backslash Notation {{{1
syn match puppetKeyword "\(\<import\>\|\<inherits\>\|\<include\>\|\<require\>\|\<contain\>\)\(\s*=>\)\@!" syn match puppetStringEscape "\\\\\|\\[abefnrstv]\|\\\o\{1,3}\|\\x\x\{1,2}" contained display
syn match puppetControl "\(\<case\>\|\<default\>\|\<unless\>\|\<if\>\|\<else\>\|\<elsif\>\)\(\s*=>\)\@!" syn match puppetStringEscape "\%(\\M-\\C-\|\\C-\\M-\|\\M-\\c\|\\c\\M-\|\\c\|\\C-\|\\M-\)\%(\\\o\{1,3}\|\\x\x\{1,2}\|\\\=\S\)" contained display
syn keyword puppetSpecial true false undef syn match puppetQuoteEscape "\\[\\']" contained display
syn match puppetClass "[A-Za-z0-9_-]\+\(::[A-Za-z0-9_-]\+\)\+" contains=@NoSpell syn region puppetInterpolation matchgroup=puppetInterpolationDelimiter start="${" end="}" contained contains=ALLBUT,@puppetNotTop
syn match puppetInterpolation "$\%(::\)\?\w\+" display contained contains=puppetInterpolationDelimiter,puppetVariable
syn match puppetInterpolationDelimiter "$\ze\$\w\+" display contained
syn match puppetInterpolation "$\$\%(-\w\|\W\)" display contained contains=puppetInterpolationDelimiter,puppetVariable,puppetInvalidVariable
syn match puppetInterpolationDelimiter "$\ze\$\%(-\w\|\W\)" display contained
syn region puppetNoInterpolation start="\\${" end="}" contained
syn match puppetNoInterpolation "\\${" display contained
syn match puppetNoInterpolation "\\$\w\+" display contained
" Match the Regular Expression type syn match puppetDelimiterEscape "\\[(<{\[)>}\]]" transparent display contained contains=NONE
" XXX: Puppet does not currently support a few features available in the
" full Ruby Regexp class, namely, interpolation, lookbehind and named syn region puppetNestedParentheses start="(" skip="\\\\\|\\)" matchgroup=puppetString end=")" transparent contained
" sub-expressions. Matches for these features are included in the syn region puppetNestedCurlyBraces start="{" skip="\\\\\|\\}" matchgroup=puppetString end="}" transparent contained
" commented-out versions of puppetRegexParen and puppetRegexSubName, syn region puppetNestedAngleBrackets start="<" skip="\\\\\|\\>" matchgroup=puppetString end=">" transparent contained
" plus the supporting groups puppetRegexAngBrack and puppetRegexTick. syn region puppetNestedSquareBrackets start="\[" skip="\\\\\|\\\]" matchgroup=puppetString end="\]" transparent contained
syn region puppetRegex start="\(?<!/.*\)/" skip="\\/" end="/" contains=puppetRegexParen,puppetRegexBrace,puppetRegexOrpuppetRegexBrack,puppetRegexComment
syn match puppetRegexParen "(\(?\([imx]\{0,4}:\|[=!]\)\)\?" contains=puppetRegexSpecChar,puppetRegexSubName contained " Regular Expression Metacharacters {{{1
"syn match puppetRegexParen "(\(?\([imxo]\{0,4}:\|['<][[:alnum:]]\+[>']\|<?[=!]\)\)\?" contains=puppetRegexSpecChar,puppetRegexSubName contained " These are mostly Oniguruma ready
syn match puppetRegexParen ")" contained syn region puppetRegexpComment matchgroup=puppetRegexpSpecial start="(?#" skip="\\)" end=")" contained
syn match puppetRegexBrace "{" contained syn region puppetRegexpParens matchgroup=puppetRegexpSpecial start="(\(?:\|?<\=[=!]\|?>\|?<[a-z_]\w*>\|?[imx]*-[imx]*:\=\|\%(?#\)\@!\)" skip="\\)" end=")" contained transparent contains=@puppetRegexpSpecial
syn match puppetRegexBrace "}" contained syn region puppetRegexpBrackets matchgroup=puppetRegexpCharClass start="\[\^\=" skip="\\\]" end="\]" contained transparent contains=puppetStringEscape,puppetRegexpEscape,puppetRegexpCharClass oneline
syn match puppetRegexBrack "\[" contained syn match puppetRegexpCharClass "\\[DdHhSsWw]" contained display
syn match puppetRegexBrack "\]" contained syn match puppetRegexpCharClass "\[:\^\=\%(alnum\|alpha\|ascii\|blank\|cntrl\|digit\|graph\|lower\|print\|punct\|space\|upper\|xdigit\):\]" contained
"syn match puppetRegexAngBrack "<" contained syn match puppetRegexpEscape "\\[].*?+^$|\\/(){}[]" contained
"syn match puppetRegexAngBrack ">" contained syn match puppetRegexpQuantifier "[*?+][?+]\=" contained display
"syn match puppetRegexTick +'+ contained syn match puppetRegexpQuantifier "{\d\+\%(,\d*\)\=}?\=" contained display
syn match puppetRegexOr "|" contained syn match puppetRegexpAnchor "[$^]\|\\[ABbGZz]" contained display
"syn match puppetRegexSubName "['<][[:alnum:]]\+[>']" contains=puppetRegexAngBrack,puppetRegexTick contained syn match puppetRegexpDot "\." contained display
syn match puppetRegexSpecialChar "[?:imx]\|\(<?[=!]\)" contained syn match puppetRegexpSpecial "|" contained display
syn region puppetRegexComment start="(?#" skip="\\)" end=")" contained syn match puppetRegexpSpecial "\\[1-9]\d\=\d\@!" contained display
syn match puppetRegexpSpecial "\\k<\%([a-z_]\w*\|-\=\d\+\)\%([+-]\d\+\)\=>" contained display
syn match puppetRegexpSpecial "\\k'\%([a-z_]\w*\|-\=\d\+\)\%([+-]\d\+\)\='" contained display
syn match puppetRegexpSpecial "\\g<\%([a-z_]\w*\|-\=\d\+\)>" contained display
syn match puppetRegexpSpecial "\\g'\%([a-z_]\w*\|-\=\d\+\)'" contained display
syn cluster puppetStringSpecial contains=puppetInterpolation,puppetNoInterpolation,puppetStringEscape
syn cluster puppetExtendedStringSpecial contains=@puppetStringSpecial,puppetNestedParentheses,puppetNestedCurlyBraces,puppetNestedAngleBrackets,puppetNestedSquareBrackets
syn cluster puppetRegexpSpecial contains=puppetRegexpSpecial,puppetRegexpEscape,puppetRegexpBrackets,puppetRegexpCharClass,puppetRegexpDot,puppetRegexpQuantifier,puppetRegexpAnchor,puppetRegexpParens,puppetRegexpComment
syn match puppetInteger "\%(\%(\w\|[]})\"']\s*\)\@<!-\)\=\<0[xX]\x\+\%(_\x\+\)*r\=i\=\>" display
syn match puppetInteger "\%(\%(\w\|[]})\"']\s*\)\@<!-\)\=\<\%(0[dD]\)\=\%(0\|[1-9]\d*\%(_\d\+\)*\)r\=i\=\>" display
syn match puppetInteger "\%(\%(\w\|[]})\"']\s*\)\@<!-\)\=\<0[oO]\=\o\+\%(_\o\+\)*r\=i\=\>" display
syn match puppetInteger "\%(\%(\w\|[]})\"']\s*\)\@<!-\)\=\<0[bB][01]\+\%(_[01]\+\)*r\=i\=\>" display
syn match puppetFloat "\%(\%(\w\|[]})\"']\s*\)\@<!-\)\=\<\%(0\|[1-9]\d*\%(_\d\+\)*\)\.\d\+\%(_\d\+\)*r\=i\=\>" display
syn match puppetFloat "\%(\%(\w\|[]})\"']\s*\)\@<!-\)\=\<\%(0\|[1-9]\d*\%(_\d\+\)*\)\%(\.\d\+\%(_\d\+\)*\)\=\%([eE][-+]\=\d\+\%(_\d\+\)*\)r\=i\=\>" display
syn match puppetVariable "$\%(::\)\=\w\+\%(::\w\+\)*" display
syn match puppetName "\%(::\)\=[a-z]\w*\%(::[a-z]\w*\)*" display
syn match puppetType "\%(::\)\=[A-Z]\w*\%(::[A-Z]\w*\)*" display
syn match puppetWord "\%(\%(::\)\=\%(_[\w-]*\w\+\)\|\%([a-z]\%(\w*-\)\+\w\+\)\)\+" display
" bad name containing combinations of segment starting with lower case and segement starting with upper case (or vice versa)
syn match puppetNameBad "\%(::\)\=\%(\w\+::\)*\%(\%([a-z]\w*::[A-Z]\w*\)\|\%([A-Z]\w*::[a-z]\w*\)\)\%(::\w\+\)*" display
syn cluster puppetNameOrType contains=puppetVariable,puppetName,puppetType,puppetWord,puppetNameBad
syn keyword puppetControl case and or in
syn keyword puppetKeyword class define inherits node undef function type attr private
syn keyword puppetKeyword application consumes produces site
syn keyword puppetKeyword present absent purged latest installed running stopped mounted unmounted role configured file directory link on_failure contained
syn keyword puppetConstant default undef
syn keyword puppetConditional if else elsif unless
syn keyword puppetBoolean true false
" Core functions
syn match puppetFunction "\<alert\>"
syn match puppetFunction "\<assert_type\>"
syn match puppetFunction "\<binary_file\>"
syn match puppetFunction "\<break\>"
syn match puppetFunction "\<contain\>"
syn match puppetFunction "\<crit\>"
syn match puppetFunction "\<create_resources\>"
syn match puppetFunction "\<debug\>"
syn match puppetFunction "\<defined\>"
syn match puppetFunction "\<dig\>"
syn match puppetFunction "\<each\>"
syn match puppetFunction "\<emerg\>"
syn match puppetFunction "\<epp\>"
syn match puppetFunction "\<err\>"
syn match puppetFunction "\<fail\>"
syn match puppetFunction "\<file\>"
syn match puppetFunction "\<filter\>"
syn match puppetFunction "\<find_file\>"
syn match puppetFunction "\<fqdn_rand\>"
syn match puppetFunction "\<hiera\>"
syn match puppetFunction "\<hiera_array\>"
syn match puppetFunction "\<hiera_hash\>"
syn match puppetFunction "\<hiera_include\>"
syn match puppetFunction "\<import\>"
syn match puppetFunction "\<include\>"
syn match puppetFunction "\<info\>"
syn match puppetFunction "\<inline_epp\>"
syn match puppetFunction "\<lest\>"
syn match puppetFunction "\<lookup\>"
syn match puppetFunction "\<map\>"
syn match puppetFunction "\<match\>"
syn match puppetFunction "\<new\>"
syn match puppetFunction "\<next\>"
syn match puppetFunction "\<notice\>"
syn match puppetFunction "\<realize\>"
syn match puppetFunction "\<reduce\>"
syn match puppetFunction "\<regsubst\>"
syn match puppetFunction "\<require\>"
syn match puppetFunction "\<return\>"
syn match puppetFunction "\<reverse_each\>"
syn match puppetFunction "\<scanf\>"
syn match puppetFunction "\<sha1\>"
syn match puppetFunction "\<shellquote\>"
syn match puppetFunction "\<slice\>"
syn match puppetFunction "\<split\>"
syn match puppetFunction "\<sprintf\>"
syn match puppetFunction "\<step\>"
syn match puppetFunction "\<strftime\>"
syn match puppetFunction "\<tag\>"
syn match puppetFunction "\<tagged\>"
syn match puppetFunction "\<template\>"
syn match puppetFunction "\<then\>"
syn match puppetFunction "\<type\>"
syn match puppetFunction "\<unwrap\>"
syn match puppetFunction "\<versioncmp\>"
syn match puppetFunction "\<warning\>"
syn match puppetFunction "\<with\>"
" Stdlib functions
syn match puppetStdLibFunction "\<abs\>"
syn match puppetStdLibFunction "\<any2array\>"
syn match puppetStdLibFunction "\<any2bool\>"
syn match puppetStdLibFunction "\<assert_private\>"
syn match puppetStdLibFunction "\<base64\>"
syn match puppetStdLibFunction "\<basename\>"
syn match puppetStdLibFunction "\<bool2num\>"
syn match puppetStdLibFunction "\<bool2str\>"
syn match puppetStdLibFunction "\<camelcase\>"
syn match puppetStdLibFunction "\<capitalize\>"
syn match puppetStdLibFunction "\<ceiling\>"
syn match puppetStdLibFunction "\<chomp\>"
syn match puppetStdLibFunction "\<chop\>"
syn match puppetStdLibFunction "\<clamp\>"
syn match puppetStdLibFunction "\<concat\>"
syn match puppetStdLibFunction "\<convert_base\>"
syn match puppetStdLibFunction "\<count\>"
syn match puppetStdLibFunction "\<deep_merge\>"
syn match puppetStdLibFunction "\<defined_with_params\>"
syn match puppetStdLibFunction "\<delete\>"
syn match puppetStdLibFunction "\<delete_at\>"
syn match puppetStdLibFunction "\<delete_regex\>"
syn match puppetStdLibFunction "\<delete_undef_values\>"
syn match puppetStdLibFunction "\<delete_values\>"
syn match puppetStdLibFunction "\<deprecation\>"
syn match puppetStdLibFunction "\<difference\>"
syn match puppetStdLibFunction "\<dig\>"
syn match puppetStdLibFunction "\<dig44\>"
syn match puppetStdLibFunction "\<dirname\>"
syn match puppetStdLibFunction "\<dos2unix\>"
syn match puppetStdLibFunction "\<downcase\>"
syn match puppetStdLibFunction "\<empty\>"
syn match puppetStdLibFunction "\<enclose_ipv6\>"
syn match puppetStdLibFunction "\<ensure_packages\>"
syn match puppetStdLibFunction "\<ensure_resource\>"
syn match puppetStdLibFunction "\<ensure_resources\>"
syn match puppetStdLibFunction "\<flatten\>"
syn match puppetStdLibFunction "\<floor\>"
syn match puppetStdLibFunction "\<fqdn_rand_string\>"
syn match puppetStdLibFunction "\<fqdn_rotate\>"
syn match puppetStdLibFunction "\<get_module_path\>"
syn match puppetStdLibFunction "\<getparam\>"
syn match puppetStdLibFunction "\<getvar\>"
syn match puppetStdLibFunction "\<grep\>"
syn match puppetStdLibFunction "\<has_interface_with\>"
syn match puppetStdLibFunction "\<has_ip_address\>"
syn match puppetStdLibFunction "\<has_ip_network\>"
syn match puppetStdLibFunction "\<has_key\>"
syn match puppetStdLibFunction "\<hash\>"
syn match puppetStdLibFunction "\<intersection\>"
syn match puppetStdLibFunction "\<is_absolute_path\>"
syn match puppetStdLibFunction "\<is_array\>"
syn match puppetStdLibFunction "\<is_bool\>"
syn match puppetStdLibFunction "\<is_domain_name\>"
syn match puppetStdLibFunction "\<is_email_address\>"
syn match puppetStdLibFunction "\<is_float\>"
syn match puppetStdLibFunction "\<is_function_available\>"
syn match puppetStdLibFunction "\<is_hash\>"
syn match puppetStdLibFunction "\<is_integer\>"
syn match puppetStdLibFunction "\<is_ip_address\>"
syn match puppetStdLibFunction "\<is_ipv4_address\>"
syn match puppetStdLibFunction "\<is_ipv6_address\>"
syn match puppetStdLibFunction "\<is_mac_address\>"
syn match puppetStdLibFunction "\<is_numeric\>"
syn match puppetStdLibFunction "\<is_string\>"
syn match puppetStdLibFunction "\<join\>"
syn match puppetStdLibFunction "\<join_keys_to_values\>"
syn match puppetStdLibFunction "\<keys\>"
syn match puppetStdLibFunction "\<load_module_metadata\>"
syn match puppetStdLibFunction "\<loadjson\>"
syn match puppetStdLibFunction "\<loadyaml\>"
syn match puppetStdLibFunction "\<lstrip\>"
syn match puppetStdLibFunction "\<max\>"
syn match puppetStdLibFunction "\<member\>"
syn match puppetStdLibFunction "\<merge\>"
syn match puppetStdLibFunction "\<min\>"
syn match puppetStdLibFunction "\<num2bool\>"
syn match puppetStdLibFunction "\<parsejson\>"
syn match puppetStdLibFunction "\<parseyaml\>"
syn match puppetStdLibFunction "\<pick\>"
syn match puppetStdLibFunction "\<pick_default\>"
syn match puppetStdLibFunction "\<prefix\>"
syn match puppetStdLibFunction "\<private\>"
syn match puppetStdLibFunction "\<pw_hash\>"
syn match puppetStdLibFunction "\<range\>"
syn match puppetStdLibFunction "\<regexpescape\>"
syn match puppetStdLibFunction "\<reject\>"
syn match puppetStdLibFunction "\<reverse\>"
syn match puppetStdLibFunction "\<rstrip\>"
syn match puppetStdLibFunction "\<seeded_rand\>"
syn match puppetStdLibFunction "\<shell_escape\>"
syn match puppetStdLibFunction "\<shell_join\>"
syn match puppetStdLibFunction "\<shell_split\>"
syn match puppetStdLibFunction "\<shuffle\>"
syn match puppetStdLibFunction "\<size\>"
syn match puppetStdLibFunction "\<sort\>"
syn match puppetStdLibFunction "\<squeeze\>"
syn match puppetStdLibFunction "\<str2bool\>"
syn match puppetStdLibFunction "\<str2saltedsha512\>"
syn match puppetStdLibFunction "\<strftime\>"
syn match puppetStdLibFunction "\<strip\>"
syn match puppetStdLibFunction "\<suffix\>"
syn match puppetStdLibFunction "\<swapcase\>"
syn match puppetStdLibFunction "\<time\>"
syn match puppetStdLibFunction "\<to_bytes\>"
syn match puppetStdLibFunction "\<try_get_value\>"
syn match puppetStdLibFunction "\<type\>"
syn match puppetStdLibFunction "\<type3x\>"
syn match puppetStdLibFunction "\<union\>"
syn match puppetStdLibFunction "\<unique\>"
syn match puppetStdLibFunction "\<unix2dos\>"
syn match puppetStdLibFunction "\<upcase\>"
syn match puppetStdLibFunction "\<uriescape\>"
syn match puppetStdLibFunction "\<validate_absolute_path\>"
syn match puppetStdLibFunction "\<validate_array\>"
syn match puppetStdLibFunction "\<validate_augeas\>"
syn match puppetStdLibFunction "\<validate_bool\>"
syn match puppetStdLibFunction "\<validate_cmd\>"
syn match puppetStdLibFunction "\<validate_email_address\>"
syn match puppetStdLibFunction "\<validate_hash\>"
syn match puppetStdLibFunction "\<validate_integer\>"
syn match puppetStdLibFunction "\<validate_ip_address\>"
syn match puppetStdLibFunction "\<validate_ipv4_address\>"
syn match puppetStdLibFunction "\<validate_ipv6_address\>"
syn match puppetStdLibFunction "\<validate_numeric\>"
syn match puppetStdLibFunction "\<validate_re\>"
syn match puppetStdLibFunction "\<validate_slength\>"
syn match puppetStdLibFunction "\<validate_string\>"
syn match puppetStdLibFunction "\<validate_x509_rsa_key_pair\>"
syn match puppetStdLibFunction "\<values\>"
syn match puppetStdLibFunction "\<values_at\>"
syn match puppetStdLibFunction "\<zip\>"
syn match puppetType "\<Any\>"
syn match puppetType "\<Array\>"
syn match puppetType "\<Binary\>"
syn match puppetType "\<Boolean\>"
syn match puppetType "\<Callable\>"
syn match puppetType "\<CatalogEntry\>"
syn match puppetType "\<Class\>"
syn match puppetType "\<Collection\>"
syn match puppetType "\<Data\>"
syn match puppetType "\<Default\>"
syn match puppetType "\<Enum\>"
syn match puppetType "\<Float\>"
syn match puppetType "\<Hash\>"
syn match puppetType "\<Integer\>"
syn match puppetType "\<Iterable\>"
syn match puppetType "\<Iterator\>"
syn match puppetType "\<NotUndef\>"
syn match puppetType "\<Numeric\>"
syn match puppetType "\<Object\>"
syn match puppetType "\<Optional\>"
syn match puppetType "\<Pattern\>"
syn match puppetType "\<Regexp\>"
syn match puppetType "\<Resource\>"
syn match puppetType "\<Runtime\>"
syn match puppetType "\<Scalar\>"
syn match puppetType "\<ScalarData\>"
syn match puppetType "\<SemVer\>"
syn match puppetType "\<SemVerRange\>"
syn match puppetType "\<Sensitive\>"
syn match puppetType "\<String\>"
syn match puppetType "\<Struct\>"
syn match puppetType "\<TimeSpan\>"
syn match puppetType "\<Timestamp\>"
syn match puppetType "\<Tuple\>"
syn match puppetType "\<Type\>"
syn match puppetType "\<TypeAlias\>"
syn match puppetType "\<TypeReference\>"
syn match puppetType "\<TypeSet\>"
syn match puppetType "\<Undef\>"
syn match puppetType "\<Unit\>"
syn match puppetType "\<Variant\>"
syn match puppetType "\<augeas\>"
syn match puppetType "\<computer\>"
syn match puppetType "\<cron\>"
syn match puppetType "\<exec\>"
syn match puppetType "\<file\>"
syn match puppetType "\<filebucket\>"
syn match puppetType "\<group\>"
syn match puppetType "\<host\>"
syn match puppetType "\<interface\>"
syn match puppetType "\<k5login\>"
syn match puppetType "\<macauthorization\>"
syn match puppetType "\<mailalias\>"
syn match puppetType "\<maillist\>"
syn match puppetType "\<mcx\>"
syn match puppetType "\<mount\>"
syn match puppetType "\<nagios_command\>"
syn match puppetType "\<nagios_contact\>"
syn match puppetType "\<nagios_contactgroup\>"
syn match puppetType "\<nagios_host\>"
syn match puppetType "\<nagios_hostdependency\>"
syn match puppetType "\<nagios_hostescalation\>"
syn match puppetType "\<nagios_hostextinfo\>"
syn match puppetType "\<nagios_hostgroup\>"
syn match puppetType "\<nagios_service\>"
syn match puppetType "\<nagios_servicedependency\>"
syn match puppetType "\<nagios_serviceescalation\>"
syn match puppetType "\<nagios_serviceextinfo\>"
syn match puppetType "\<nagios_servicegroup\>"
syn match puppetType "\<nagios_timeperiod\>"
syn match puppetType "\<notify\>"
syn match puppetType "\<package\>"
syn match puppetType "\<resources\>"
syn match puppetType "\<router\>"
syn match puppetType "\<schedule\>"
syn match puppetType "\<scheduled_task\>"
syn match puppetType "\<selboolean\>"
syn match puppetType "\<selmodule\>"
syn match puppetType "\<service\>"
syn match puppetType "\<ssh_authorized_key\>"
syn match puppetType "\<sshkey\>"
syn match puppetType "\<stage\>"
syn match puppetType "\<tidy\>"
syn match puppetType "\<user\>"
syn match puppetType "\<vlan\>"
syn match puppetType "\<whit\>"
syn match puppetType "\<yumrepo\>"
syn match puppetType "\<zfs\>"
syn match puppetType "\<zone\>"
syn match puppetType "\<zpool\>"
" Normal String {{{1
syn region puppetString matchgroup=puppetStringDelimiter start="\"" end="\"" skip="\\\\\|\\\"" contains=@puppetStringSpecial
syn region puppetString matchgroup=puppetStringDelimiter start="'" end="'" skip="\\\\\|\\'" contains=puppetQuoteEscape
" Normal Regular Expression {{{1
syn region puppetRegexp matchgroup=puppetRegexpDelimiter start="\%(\%(^\|\<\%(and\|or\|while\|until\|unless\|if\|elsif\|when\|not\|then\|else\)\|[;\~=!|&(,{[<>?:*+-]\)\s*\)\@<=/" end="/" skip="\\\\\|\\/" contains=@puppetRegexpSpecial
syn region puppetRegexp matchgroup=puppetRegexpDelimiter start="\%(\h\k*\s\+\)\@<=/[ \t=]\@!" end="/" skip="\\\\\|\\/" contains=@puppetRegexpSpecial
" Here Document {{{1
syn region puppetHeredocStart matchgroup=puppetStringDelimiter start=+@(\s*\%("[^"]\+"\|\w\+\)\%(/[nrtsuL$\\]*\)\=)+ end=+$+ oneline contains=ALLBUT,@puppetNotTop
syn region puppetString start=+@(\s*"\z([^"]\+\)"\%(/[nrtsuL$\\]*\)\=+hs=s+2 matchgroup=puppetStringDelimiter end=+^\s*|\=\s*-\=\s*\zs\z1$+ contains=puppetHeredocStart,@puppetStringSpecial keepend
syn region puppetString start=+@(\s*\z(\w\+\)\%(/[nrtsuL$\\]*\)\=+hs=s+2 matchgroup=puppetStringDelimiter end=+^\s*|\=\s*-\=\s*\zs\z1$+ contains=puppetHeredocStart keepend
" comments last overriding everything else " comments last overriding everything else
syn match puppetComment "\s*#.*$" contains=puppetTodo,@Spell syn match puppetComment "\s*#.*$" contains=puppetTodo,@Spell
syn region puppetMultilineComment start="/\*" end="\*/" contains=puppetTodo,@Spell syn region puppetComment start="/\*" end="\*/" contains=puppetTodo,@Spell extend
syn keyword puppetTodo TODO NOTE FIXME XXX BUG HACK contained syn keyword puppetTodo TODO NOTE FIXME XXX BUG HACK contained
syn keyword puppetTodo TODO: NOTE: FIXME: XXX: BUG: HACK: contained
" Define the default highlighting. " Define the default highlighting.
" For version 5.7 and earlier: only when not done already command -nargs=+ HiLink hi def link <args>
" For version 5.8 and later: only when an item doesn't have highlighting yet
if version >= 508 || !exists("did_puppet_syn_inits")
if version < 508
let did_puppet_syn_inits = 1
command -nargs=+ HiLink hi link <args>
else
command -nargs=+ HiLink hi def link <args>
endif
HiLink puppetVariable Identifier HiLink puppetRegexp puppetConstant
HiLink puppetType Type HiLink puppetStdLibFunction puppetFunction
HiLink puppetKeyword Keyword HiLink puppetNoInterpolation puppetString
HiLink puppetComment Comment HiLink puppetFunction Function
HiLink puppetMultilineComment Comment HiLink puppetOperator Operator
HiLink puppetString String HiLink puppetString String
HiLink puppetRegex Constant HiLink puppetWord String
HiLink puppetRegexParen Delimiter HiLink puppetFloat Float
HiLink puppetRegexBrace Delimiter HiLink puppetInteger Number
HiLink puppetRegexBrack Delimiter HiLink puppetBoolean Boolean
HiLink puppetRegexAngBrack Delimiter HiLink puppetName puppetIdentifier
HiLink puppetRegexTick Delimiter HiLink puppetNameBad Error
HiLink puppetRegexOr Delimiter HiLink puppetVariable puppetIdentifier
HiLink puppetRegexSubName Identifier HiLink puppetIdentifier Identifier
HiLink puppetRegexSpecChar SpecialChar HiLink puppetType Type
HiLink puppetRegexComment Comment HiLink puppetConditional Conditional
HiLink puppetParamKeyword Keyword HiLink puppetConstant Constant
HiLink puppetParamDigits String HiLink puppetControl Statement
HiLink puppetNotVariable String HiLink puppetKeyword Keyword
HiLink puppetParamSpecial Boolean HiLink puppetStringDelimiter Delimiter
HiLink puppetSpecial Special HiLink puppetDelimiter Delimiter
HiLink puppetTodo Todo HiLink puppetTodo Todo
HiLink puppetBrack Delimiter HiLink puppetComment Comment
HiLink puppetTypeBrack Delimiter
HiLink puppetBrace Delimiter
HiLink puppetTypeBrace Delimiter
HiLink puppetParen Delimiter
HiLink puppetDelimiter Delimiter
HiLink puppetControl Statement
HiLink puppetDefType Define
HiLink puppetDefName Type
HiLink puppetNodeRe Type
HiLink puppetTypeName Statement
HiLink puppetTypeDefault Type
HiLink puppetParamName Identifier
HiLink puppetArgument Identifier
HiLink puppetFunction Function
HiLink puppetClass Include
delcommand HiLink delcommand HiLink
endif
let b:current_syntax = "puppet" let b:current_syntax = "puppet"

View File

@@ -17,7 +17,13 @@ endif
" Syntax definitions {{{1 " Syntax definitions {{{1
" Basic keywords {{{2 " Basic keywords {{{2
syn keyword rustConditional match if else syn keyword rustConditional match if else
syn keyword rustRepeat for loop while syn keyword rustRepeat loop while
" `:syn match` must be used to prioritize highlighting `for` keyword.
syn match rustRepeat /\<for\>/
" Highlight `for` keyword in `impl ... for ... {}` statement. This line must
" be put after previous `syn match` line to overwrite it.
syn match rustKeyword /\%(\<impl\>.\+\)\@<=\<for\>/
syn keyword rustRepeat in
syn keyword rustTypedef type nextgroup=rustIdentifier skipwhite skipempty syn keyword rustTypedef type nextgroup=rustIdentifier skipwhite skipempty
syn keyword rustStructure struct enum nextgroup=rustIdentifier skipwhite skipempty syn keyword rustStructure struct enum nextgroup=rustIdentifier skipwhite skipempty
syn keyword rustUnion union nextgroup=rustIdentifier skipwhite skipempty contained syn keyword rustUnion union nextgroup=rustIdentifier skipwhite skipempty contained
@@ -30,12 +36,12 @@ syn match rustAssert "\<assert\(\w\)*!" contained
syn match rustPanic "\<panic\(\w\)*!" contained syn match rustPanic "\<panic\(\w\)*!" contained
syn match rustAsync "\<async\%(\s\|\n\)\@=" syn match rustAsync "\<async\%(\s\|\n\)\@="
syn keyword rustKeyword break syn keyword rustKeyword break
syn keyword rustKeyword box nextgroup=rustBoxPlacement skipwhite skipempty syn keyword rustKeyword box
syn keyword rustKeyword continue syn keyword rustKeyword continue
syn keyword rustKeyword crate syn keyword rustKeyword crate
syn keyword rustKeyword extern nextgroup=rustExternCrate,rustObsoleteExternMod skipwhite skipempty syn keyword rustKeyword extern nextgroup=rustExternCrate,rustObsoleteExternMod skipwhite skipempty
syn keyword rustKeyword fn nextgroup=rustFuncName skipwhite skipempty syn keyword rustKeyword fn nextgroup=rustFuncName skipwhite skipempty
syn keyword rustKeyword in impl let syn keyword rustKeyword impl let
syn keyword rustKeyword macro syn keyword rustKeyword macro
syn keyword rustKeyword pub nextgroup=rustPubScope skipwhite skipempty syn keyword rustKeyword pub nextgroup=rustPubScope skipwhite skipempty
syn keyword rustKeyword return syn keyword rustKeyword return
@@ -62,14 +68,6 @@ syn keyword rustObsoleteExternMod mod contained nextgroup=rustIdentifier skipw
syn match rustIdentifier contains=rustIdentifierPrime "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained syn match rustIdentifier contains=rustIdentifierPrime "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained
syn match rustFuncName "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained syn match rustFuncName "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained
syn region rustBoxPlacement matchgroup=rustBoxPlacementParens start="(" end=")" contains=TOP contained
" Ideally we'd have syntax rules set up to match arbitrary expressions. Since
" we don't, we'll just define temporary contained rules to handle balancing
" delimiters.
syn region rustBoxPlacementBalance start="(" end=")" containedin=rustBoxPlacement transparent
syn region rustBoxPlacementBalance start="\[" end="\]" containedin=rustBoxPlacement transparent
" {} are handled by rustFoldBraces
syn region rustMacroRepeat matchgroup=rustMacroRepeatDelimiters start="$(" end=")" contains=TOP nextgroup=rustMacroRepeatCount syn region rustMacroRepeat matchgroup=rustMacroRepeatDelimiters start="$(" end=")" contains=TOP nextgroup=rustMacroRepeatCount
syn match rustMacroRepeatCount ".\?[*+]" contained syn match rustMacroRepeatCount ".\?[*+]" contained
syn match rustMacroVariable "$\w\+" syn match rustMacroVariable "$\w\+"
@@ -148,9 +146,9 @@ syn match rustEscapeError display contained /\\./
syn match rustEscape display contained /\\\([nrt0\\'"]\|x\x\{2}\)/ syn match rustEscape display contained /\\\([nrt0\\'"]\|x\x\{2}\)/
syn match rustEscapeUnicode display contained /\\u{\%(\x_*\)\{1,6}}/ syn match rustEscapeUnicode display contained /\\u{\%(\x_*\)\{1,6}}/
syn match rustStringContinuation display contained /\\\n\s*/ syn match rustStringContinuation display contained /\\\n\s*/
syn region rustString start=+b"+ skip=+\\\\\|\\"+ end=+"+ contains=rustEscape,rustEscapeError,rustStringContinuation syn region rustString matchgroup=rustStringDelimiter start=+b"+ skip=+\\\\\|\\"+ end=+"+ contains=rustEscape,rustEscapeError,rustStringContinuation
syn region rustString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=rustEscape,rustEscapeUnicode,rustEscapeError,rustStringContinuation,@Spell syn region rustString matchgroup=rustStringDelimiter start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=rustEscape,rustEscapeUnicode,rustEscapeError,rustStringContinuation,@Spell
syn region rustString start='b\?r\z(#*\)"' end='"\z1' contains=@Spell syn region rustString matchgroup=rustStringDelimiter start='b\?r\z(#*\)"' end='"\z1' contains=@Spell
" Match attributes with either arbitrary syntax or special highlighting for " Match attributes with either arbitrary syntax or special highlighting for
" derives. We still highlight strings and comments inside of the attribute. " derives. We still highlight strings and comments inside of the attribute.
@@ -202,6 +200,7 @@ syn region rustGenericLifetimeCandidate display start=/\%(<\|,\s*\)\@<='/ end=/[
"rustLifetime must appear before rustCharacter, or chars will get the lifetime highlighting "rustLifetime must appear before rustCharacter, or chars will get the lifetime highlighting
syn match rustLifetime display "\'\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" syn match rustLifetime display "\'\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*"
syn match rustLabel display "\'\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*:" syn match rustLabel display "\'\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*:"
syn match rustLabel display "\%(\<\%(break\|continue\)\s*\)\@<=\'\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*"
syn match rustCharacterInvalid display contained /b\?'\zs[\n\r\t']\ze'/ syn match rustCharacterInvalid display contained /b\?'\zs[\n\r\t']\ze'/
" The groups negated here add up to 0-255 but nothing else (they do not seem to go beyond ASCII). " The groups negated here add up to 0-255 but nothing else (they do not seem to go beyond ASCII).
syn match rustCharacterInvalidUnicode display contained /b'\zs[^[:cntrl:][:graph:][:alnum:][:space:]]\ze'/ syn match rustCharacterInvalidUnicode display contained /b'\zs[^[:cntrl:][:graph:][:alnum:][:space:]]\ze'/
@@ -289,6 +288,7 @@ hi def link rustEscapeUnicode rustEscape
hi def link rustEscapeError Error hi def link rustEscapeError Error
hi def link rustStringContinuation Special hi def link rustStringContinuation Special
hi def link rustString String hi def link rustString String
hi def link rustStringDelimiter String
hi def link rustCharacterInvalid Error hi def link rustCharacterInvalid Error
hi def link rustCharacterInvalidUnicode rustCharacterInvalid hi def link rustCharacterInvalidUnicode rustCharacterInvalid
hi def link rustCharacter Character hi def link rustCharacter Character
@@ -345,7 +345,6 @@ hi def link rustLifetime Special
hi def link rustLabel Label hi def link rustLabel Label
hi def link rustExternCrate rustKeyword hi def link rustExternCrate rustKeyword
hi def link rustObsoleteExternMod Error hi def link rustObsoleteExternMod Error
hi def link rustBoxPlacementParens Delimiter
hi def link rustQuestionMark Special hi def link rustQuestionMark Special
hi def link rustAsync rustKeyword hi def link rustAsync rustKeyword
hi def link rustAwait rustKeyword hi def link rustAwait rustKeyword

View File

@@ -8,8 +8,8 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'svelte') == -1
" URL: https://github.com/evanleck/vim-svelte " URL: https://github.com/evanleck/vim-svelte
" "
" Like vim-jsx, this depends on the pangloss/vim-javascript syntax package (and " Like vim-jsx, this depends on the pangloss/vim-javascript syntax package (and
" is tested against it exclusively). If you're using vim-polyglot (like I am), " is tested against it exclusively). If you're using vim-polyglot, then you're
" then you're all set. " all set.
if exists("b:current_syntax") if exists("b:current_syntax")
finish finish
@@ -26,13 +26,14 @@ syntax match htmlTagName contained "\<[a-zA-Z:\.]*\>"
" "bind:something", etc. " "bind:something", etc.
syntax match svelteKeyword "\<[a-z]\+:[a-zA-Z|]\+=" contained containedin=htmlTag syntax match svelteKeyword "\<[a-z]\+:[a-zA-Z|]\+=" contained containedin=htmlTag
" Mixed-case attributes are likely props.
syntax match svelteKeyword "\<[a-z]\+:[a-zA-Z|]\+=" contained containedin=htmlTag
" The "slot" attribute has special meaning. " The "slot" attribute has special meaning.
syntax keyword svelteKeyword slot contained containedin=htmlTag syntax keyword svelteKeyword slot contained containedin=htmlTag
" According to vim-jsx, you can let jsBlock take care of ending the region. " According to vim-jsx, you can let jsBlock take care of ending the region.
" https://github.com/mxw/vim-jsx/blob/master/after/syntax/jsx.vim " https://github.com/mxw/vim-jsx/blob/master/after/syntax/jsx.vim
"
" ALLBUT,htmlSpecialTagName keeps Vim from marking CSS regions as jsBlock.
syntax region svelteExpression start="{" end="" contains=jsBlock,javascriptBlock containedin=htmlString,htmlTag,htmlArg,htmlValue,htmlH1,htmlH2,htmlH3,htmlH4,htmlH5,htmlH6,htmlHead,htmlTitle,htmlBoldItalicUnderline,htmlUnderlineBold,htmlUnderlineItalicBold,htmlUnderlineBoldItalic,htmlItalicUnderline,htmlItalicBold,htmlItalicBoldUnderline,htmlItalicUnderlineBold,htmlLink,htmlLeadingSpace,htmlBold,htmlBoldUnderline,htmlBoldItalic,htmlBoldUnderlineItalic,htmlUnderline,htmlUnderlineItalic,htmlItalic,htmlStrike,javaScript syntax region svelteExpression start="{" end="" contains=jsBlock,javascriptBlock containedin=htmlString,htmlTag,htmlArg,htmlValue,htmlH1,htmlH2,htmlH3,htmlH4,htmlH5,htmlH6,htmlHead,htmlTitle,htmlBoldItalicUnderline,htmlUnderlineBold,htmlUnderlineItalicBold,htmlUnderlineBoldItalic,htmlItalicUnderline,htmlItalicBold,htmlItalicBoldUnderline,htmlItalicUnderlineBold,htmlLink,htmlLeadingSpace,htmlBold,htmlBoldUnderline,htmlBoldItalic,htmlBoldUnderlineItalic,htmlUnderline,htmlUnderlineItalic,htmlItalic,htmlStrike,javaScript
" Block conditionals. " Block conditionals.

View File

@@ -20,7 +20,7 @@ syn match sdErr contained /\s*\S\+/ nextgroup=sdErr
" environment args and format strings " environment args and format strings
syn match sdEnvArg contained /\$\i\+\|\${\i\+}/ syn match sdEnvArg contained /\$\i\+\|\${\i\+}/
syn match sdFormatStr contained /%[inpINPfcrRt]/ containedin=ALLBUT,sdComment,sdErr syn match sdFormatStr contained /%[bCEfhHiIjJLmnNpPsStTgGuUvV%]/ containedin=ALLBUT,sdComment,sdErr
" common data types " common data types
syn match sdUInt contained nextgroup=sdErr /\d\+/ syn match sdUInt contained nextgroup=sdErr /\d\+/

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'tmux') == -1 if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'tmux') == -1
" Language: tmux(1) configuration file " Language: tmux(1) configuration file
" Version: 2.9a (git-0d64531f) " Version: 3.0 (git-48cbbb87)
" URL: https://github.com/ericpruitt/tmux.vim/ " URL: https://github.com/ericpruitt/tmux.vim/
" Maintainer: Eric Pruitt <eric.pruitt@gmail.com> " Maintainer: Eric Pruitt <eric.pruitt@gmail.com>
" License: 2-Clause BSD (http://opensource.org/licenses/BSD-2-Clause) " License: 2-Clause BSD (http://opensource.org/licenses/BSD-2-Clause)
@@ -30,6 +30,7 @@ syn match tmuxNumber /\<\d\+\>/ display
syn match tmuxFlags /\s-\a\+/ display syn match tmuxFlags /\s-\a\+/ display
syn match tmuxVariable /\w\+=/ display syn match tmuxVariable /\w\+=/ display
syn match tmuxVariableExpansion /\${\=\w\+}\=/ display syn match tmuxVariableExpansion /\${\=\w\+}\=/ display
syn match tmuxControl /%\(if\|elif\|else\|endif\)/
syn region tmuxComment start=/#/ skip=/\\\@<!\\$/ end=/$/ contains=tmuxTodo syn region tmuxComment start=/#/ skip=/\\\@<!\\$/ end=/$/ contains=tmuxTodo
@@ -45,6 +46,7 @@ hi def link tmuxFormatString Identifier
hi def link tmuxAction Boolean hi def link tmuxAction Boolean
hi def link tmuxBoolean Boolean hi def link tmuxBoolean Boolean
hi def link tmuxCommands Keyword hi def link tmuxCommands Keyword
hi def link tmuxControl Keyword
hi def link tmuxComment Comment hi def link tmuxComment Comment
hi def link tmuxKey Special hi def link tmuxKey Special
hi def link tmuxNumber Number hi def link tmuxNumber Number
@@ -64,29 +66,29 @@ for s:i in range(0, 255)
endfor endfor
syn keyword tmuxOptions syn keyword tmuxOptions
\ buffer-limit command-alias default-terminal escape-time exit-empty \ backspace buffer-limit command-alias default-terminal escape-time
\ activity-action assume-paste-time base-index bell-action default-command \ exit-empty activity-action assume-paste-time base-index bell-action
\ default-shell default-size destroy-unattached detach-on-destroy \ default-command default-shell default-size destroy-unattached
\ display-panes-active-colour display-panes-colour display-panes-time \ detach-on-destroy display-panes-active-colour display-panes-colour
\ display-time exit-unattached focus-events history-file history-limit \ display-panes-time display-time exit-unattached focus-events history-file
\ key-table lock-after-time lock-command message-command-style message-limit \ history-limit key-table lock-after-time lock-command message-command-style
\ message-style mouse aggressive-resize allow-rename alternate-screen \ message-limit message-style aggressive-resize allow-rename
\ automatic-rename automatic-rename-format clock-mode-colour \ alternate-screen automatic-rename automatic-rename-format
\ clock-mode-style main-pane-height main-pane-width mode-keys mode-style \ clock-mode-colour clock-mode-style main-pane-height main-pane-width
\ monitor-activity monitor-bell monitor-silence other-pane-height \ mode-keys mode-style monitor-activity monitor-bell monitor-silence mouse
\ other-pane-width pane-active-border-style pane-base-index \ other-pane-height other-pane-width pane-active-border-style
\ pane-border-format pane-border-status pane-border-style prefix prefix2 \ pane-base-index pane-border-format pane-border-status pane-border-style
\ remain-on-exit renumber-windows repeat-time set-clipboard set-titles \ prefix prefix2 remain-on-exit renumber-windows repeat-time set-clipboard
\ set-titles-string silence-action status status-bg status-fg status-format \ set-titles set-titles-string silence-action status status-bg status-fg
\ status-interval status-justify status-keys status-left status-left-length \ status-format status-interval status-justify status-keys status-left
\ status-left-style status-position status-right status-right-length \ status-left-length status-left-style status-position status-right
\ status-right-style status-style synchronize-panes terminal-overrides \ status-right-length status-right-style status-style synchronize-panes
\ update-environment user-keys visual-activity visual-bell visual-silence \ terminal-overrides update-environment user-keys visual-activity
\ window-active-style window-size window-status-activity-style \ visual-bell visual-silence window-active-style window-size
\ window-status-bell-style window-status-current-format \ window-status-activity-style window-status-bell-style
\ window-status-current-style window-status-format window-status-last-style \ window-status-current-format window-status-current-style
\ window-status-separator window-status-style window-style word-separators \ window-status-format window-status-last-style window-status-separator
\ wrap-search xterm-keys \ window-status-style window-style word-separators wrap-search xterm-keys
syn keyword tmuxCommands syn keyword tmuxCommands
\ attach attach-session bind bind-key break-pane breakp capture-pane \ attach attach-session bind bind-key break-pane breakp capture-pane

View File

@@ -1,10 +1,10 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1 if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
if !exists("main_syntax") if !exists("main_syntax")
if exists("b:current_syntax") && b:current_syntax != 'typescript' if exists("b:current_syntax")
finish finish
endif endif
let main_syntax = 'typescript.tsx' let main_syntax = 'typescriptreact'
endif endif
syntax region tsxTag syntax region tsxTag
@@ -121,6 +121,8 @@ syntax region tsxEscJs
\ end=+}+ \ end=+}+
\ extend \ extend
runtime syntax/common.vim
syntax cluster typescriptExpression add=tsxRegion,tsxFragment syntax cluster typescriptExpression add=tsxRegion,tsxFragment
highlight def link tsxTag htmlTag highlight def link tsxTag htmlTag
@@ -136,9 +138,8 @@ highlight def link tsxEscJs tsxEscapeJs
highlight def link tsxCloseTag htmlTag highlight def link tsxCloseTag htmlTag
highlight def link tsxCloseString Identifier highlight def link tsxCloseString Identifier
let b:current_syntax = "typescript.tsx" let b:current_syntax = "typescriptreact"
if main_syntax == 'typescript.tsx' if main_syntax == 'typescriptreact'
unlet main_syntax unlet main_syntax
endif endif
endif endif

View File

@@ -36,10 +36,10 @@ syn match zigBuiltinFn "\v\@(compileLog|ctz|popCount|divExact|divFloor|divTrunc)
syn match zigBuiltinFn "\v\@(embedFile|export|tagName|TagType|errorName)>" syn match zigBuiltinFn "\v\@(embedFile|export|tagName|TagType|errorName)>"
syn match zigBuiltinFn "\v\@(errorReturnTrace|fence|fieldParentPtr|field|unionInit)>" syn match zigBuiltinFn "\v\@(errorReturnTrace|fence|fieldParentPtr|field|unionInit)>"
syn match zigBuiltinFn "\v\@(frameAddress|import|inlineCall|newStackCall|asyncCall|intToPtr|IntType)>" syn match zigBuiltinFn "\v\@(frameAddress|import|inlineCall|newStackCall|asyncCall|intToPtr|IntType)>"
syn match zigBuiltinFn "\v\@(maxValue|memberCount|memberName|memberType)>" syn match zigBuiltinFn "\v\@(maxValue|memberCount|memberName|memberType|as)>"
syn match zigBuiltinFn "\v\@(memcpy|memset|minValue|mod|mulWithOverflow)>" syn match zigBuiltinFn "\v\@(memcpy|memset|minValue|mod|mulWithOverflow|splat)>"
syn match zigBuiltinFn "\v\@(noInlineCall|bitOffsetOf|byteOffsetOf|OpaqueType|panic|ptrCast)>" syn match zigBuiltinFn "\v\@(noInlineCall|bitOffsetOf|byteOffsetOf|OpaqueType|panic|ptrCast)>"
syn match zigBuiltinFn "\v\@(ptrToInt|rem|returnAddress|setCold|Type)>" syn match zigBuiltinFn "\v\@(ptrToInt|rem|returnAddress|setCold|Type|shuffle)>"
syn match zigBuiltinFn "\v\@(setRuntimeSafety|setEvalBranchQuota|setFloatMode)>" syn match zigBuiltinFn "\v\@(setRuntimeSafety|setEvalBranchQuota|setFloatMode)>"
syn match zigBuiltinFn "\v\@(setGlobalLinkage|setGlobalSection|shlExact|This|hasDecl|hasField)>" syn match zigBuiltinFn "\v\@(setGlobalLinkage|setGlobalSection|shlExact|This|hasDecl|hasField)>"
syn match zigBuiltinFn "\v\@(shlWithOverflow|shrExact|sizeOf|sqrt|byteSwap|subWithOverflow|intCast|floatCast|intToFloat|floatToInt|boolToInt|errSetCast)>" syn match zigBuiltinFn "\v\@(shlWithOverflow|shrExact|sizeOf|sqrt|byteSwap|subWithOverflow|intCast|floatCast|intToFloat|floatToInt|boolToInt|errSetCast)>"
@@ -58,6 +58,8 @@ syn match zigCharacterInvalidUnicode display contained /b'\zs[^[:cntrl:][:graph:
syn match zigCharacter /b'\([^\\]\|\\\(.\|x\x\{2}\)\)'/ contains=zigEscape,zigEscapeError,zigCharacterInvalid,zigCharacterInvalidUnicode syn match zigCharacter /b'\([^\\]\|\\\(.\|x\x\{2}\)\)'/ contains=zigEscape,zigEscapeError,zigCharacterInvalid,zigCharacterInvalidUnicode
syn match zigCharacter /'\([^\\]\|\\\(.\|x\x\{2}\|u\x\{4}\|U\x\{6}\)\)'/ contains=zigEscape,zigEscapeUnicode,zigEscapeError,zigCharacterInvalid syn match zigCharacter /'\([^\\]\|\\\(.\|x\x\{2}\|u\x\{4}\|U\x\{6}\)\)'/ contains=zigEscape,zigEscapeUnicode,zigEscapeError,zigCharacterInvalid
syn region zigBlock start="{" end="}" transparent fold
syn region zigCommentLine start="//" end="$" contains=zigTodo,@Spell syn region zigCommentLine start="//" end="$" contains=zigTodo,@Spell
syn region zigCommentLineDoc start="////\@!" end="$" contains=zigTodo,@Spell syn region zigCommentLineDoc start="////\@!" end="$" contains=zigTodo,@Spell