codekingpro/portable-devtools
114k
1" Vim syntax file2"3" Language: Dart4" Maintainer: Eugene 'pr3d4t0r' Ciurana <dart.syntax AT cime.net >5" Source: https://github.com/pr3d4t0r/dart-vim-syntax6" Last Update: 2019 Oct 197"8" License: Vim is Charityware. dart.vim syntax is Charityware.9" (c) Copyright 2019 by Eugene Ciurana / pr3d4t0r. Licensed10" under the standard VIM LICENSE - Vim command :help uganda.txt11" for details.12"13" Questions, comments: <dart.syntax AT cime.net>14" https://ciurana.eu/pgp, https://keybase.io/pr3d4t0r15"16" vim: set fileencoding=utf-8:17 18 19" Quit when a (custom) syntax file was already loaded20if exists("b:current_syntax")21 finish22endif23 24let s:cpo_save = &cpo25set cpo&vim26 27 28syn keyword dartCommentTodo contained TODO FIXME XXX TBD29syn match dartLineComment "//.*" contains=dartTodo,@Spell30syn match dartCommentSkip "^[ \t]*\*\($\|[ \t]\+\)"31syn region dartComment start="/\*" end="\*/" contains=@Spell,dartTodo32syn keyword dartReserved assert async await class const export extends external final hide import implements interface library mixin on show super sync yield33syn match dartNumber "-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>"34 35 36syn keyword dartBoolean false true37syn keyword dartBranch break continue38syn keyword dartConditional if else switch39syn keyword dartException catch finally rethrow throw try40syn keyword dartIdentifier abstract covariant deferred dynamic factory Function operator part static this typedef var41syn keyword dartLabel case default42syn keyword dartNull null43syn keyword dartOperator is new44syn keyword dartRepeat for do in while45syn keyword dartStatement return with 46syn keyword dartType bool double enum int String StringBuffer void47syn keyword dartTodo contained TODO FIXME XXX48 49 50syn match dartEscape contained "\\\([4-9]\d\|[0-3]\d\d\|[\"\\'ntbrf]\|u\x\{4\}\)"51syn match dartSpecialError contained "\\."52syn match dartStrInterpol contained "\${[\x, _]*\}"53 54syn region dartDQString start=+"+ end=+"+ end=+$+ contains=dartEscape,dartStrInterpol,dartSpecialError,@Spell55syn region dartSQString start=+'+ end=+'+ end=+$+ contains=dartEscape,dartStrInterpol,dartSpecialError,@Spell56 57syn match dartBraces "[{}\[\]]"58syn match dartParens "[()]"59 60 61syn sync fromstart62syn sync maxlines=10063 64 65hi def link dartBoolean Boolean66hi def link dartBranch Conditional67hi def link dartComment Comment68hi def link dartConditional Conditional69hi def link dartDQString String70hi def link dartEscape SpecialChar71hi def link dartException Exception72hi def link dartIdentifier Identifier73hi def link dartLabel Label74hi def link dartLineComment Comment75hi def link dartNull Keyword76hi def link dartOperator Operator77hi def link dartRepeat Repeat78hi def link dartReserved Keyword79hi def link dartSQString String80hi def link dartSpecialError Error81hi def link dartStatement Statement82hi def link dartStrInterpol Special83hi def link dartTodo Todo84hi def link dartType Type85 86 87let b:current_syntax = "dart"88let &cpo = s:cpo_save89unlet s:cpo_save90 91 