File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,9 @@ if !exists('dart_highlight_types') || dart_highlight_types
5656 syntax match dartTypeName " \< _\?\u [[:alnum:]_\$ ]*\> "
5757endif
5858
59+ " Function highlighting
60+ syntax match dartFunction " \z s\<\( _\?\l [[:alnum:]_\$ ]*\)\> *\s *\z e("
61+
5962" Core libraries
6063if ! exists (' dart_corelib_highlight' ) || dart_corelib_highlight
6164 syntax keyword dartCoreClasses BidirectionalIterator Comparable DateTime
@@ -132,6 +135,7 @@ highlight default link dartCoreClasses Type
132135highlight default link dartCoreTypedefs Typedef
133136highlight default link dartCoreExceptions Exception
134137highlight default link dartMetadata PreProc
138+ highlight default link dartFunction Function
135139
136140let b: current_syntax = " dart"
137141let b: spell_options = " contained"
You can’t perform that action at this time.
0 commit comments