Skip to content

Commit 917d0fe

Browse files
smolcknatebosch
authored andcommitted
Add function highlighting (#94)
1 parent 1dca4e1 commit 917d0fe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

syntax/dart.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ if !exists('dart_highlight_types') || dart_highlight_types
5656
syntax match dartTypeName "\<_\?\u[[:alnum:]_\$]*\>"
5757
endif
5858

59+
" Function highlighting
60+
syntax match dartFunction "\zs\<\(_\?\l[[:alnum:]_\$]*\)\>*\s*\ze("
61+
5962
" Core libraries
6063
if !exists('dart_corelib_highlight') || dart_corelib_highlight
6164
syntax keyword dartCoreClasses BidirectionalIterator Comparable DateTime
@@ -132,6 +135,7 @@ highlight default link dartCoreClasses Type
132135
highlight default link dartCoreTypedefs Typedef
133136
highlight default link dartCoreExceptions Exception
134137
highlight default link dartMetadata PreProc
138+
highlight default link dartFunction Function
135139

136140
let b:current_syntax = "dart"
137141
let b:spell_options = "contained"

0 commit comments

Comments
 (0)