Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
tiasm.vim103 linesDownload Raw Back to syntax
1" Vim syntax file2" Language:	TI linear assembly language3" Document:	https://downloads.ti.com/docs/esd/SPRUI03B/#SPRUI03B_HTML/assembler-description.html4" Maintainer:	Wu, Zhenyu <wuzhenyu@ustc.edu>5" Last Change:	2025 Jan 086 7if exists("b:current_syntax")8  finish9endif10 11syn case ignore12 13" storage types14syn match tiasmType "\.bits"15syn match tiasmType "\.byte"16syn match tiasmType "\.char"17syn match tiasmType "\.cstring"18syn match tiasmType "\.double"19syn match tiasmType "\.field"20syn match tiasmType "\.float"21syn match tiasmType "\.half"22syn match tiasmType "\.int"23syn match tiasmType "\.long"24syn match tiasmType "\.short"25syn match tiasmType "\.string"26syn match tiasmType "\.ubyte"27syn match tiasmType "\.uchar"28syn match tiasmType "\.uhalf"29syn match tiasmType "\.uint"30syn match tiasmType "\.ulong"31syn match tiasmType "\.ushort"32syn match tiasmType "\.uword"33syn match tiasmType "\.word"34 35syn match tiasmIdentifier		"[a-z_][a-z0-9_]*"36 37syn match tiasmDecimal		"\<[1-9]\d*\>"		 display38syn match tiasmOctal		"\<0[0-7][0-7]\+\>\|\<[0-7]\+[oO]\>"	 display39syn match tiasmHexadecimal	"\<0[xX][0-9a-fA-F]\+\>\|\<[0-9][0-9a-fA-F]*[hH]\>" display40syn match tiasmBinary		"\<0[bB][0-1]\+\>\|\<[01]\+[bB]\>"	 display41 42syn match tiasmFloat		"\<\d\+\.\d*\%(e[+-]\=\d\+\)\=\>" display43syn match tiasmFloat		"\<\d\%(e[+-]\=\d\+\)\>"	  display44 45syn match tiasmCharacter		"'.'\|''\|'[^']'"46 47syn region tiasmString		start="\"" end="\"" skip="\"\""48 49syn match tiasmFunction		"\$[a-zA-Z_][a-zA-Z_0-9]*\ze("50 51syn keyword tiasmTodo			contained TODO FIXME XXX NOTE52syn region tiasmComment			start=";" end="$" keepend contains=tiasmTodo,@Spell53syn match tiasmComment			"^[*!].*" contains=tiasmTodo,@Spell54syn match tiasmLabel			"^[^ *!;][^ :]*"55 56syn match tiasmInclude		"\.include"57syn match tiasmCond		"\.if"58syn match tiasmCond		"\.else"59syn match tiasmCond		"\.endif"60syn match tiasmMacro		"\.macro"61syn match tiasmMacro		"\.endm"62 63syn match tiasmDirective		"\.[A-Za-z][0-9A-Za-z-_]*"64 65syn case match66 67hi def link tiasmLabel		Label68hi def link tiasmComment		Comment69hi def link tiasmTodo		Todo70hi def link tiasmDirective	Statement71 72hi def link tiasmInclude		Include73hi def link tiasmCond		PreCondit74hi def link tiasmMacro		Macro75 76if exists('g:tiasm_legacy_syntax_groups')77  hi def link hexNumber		Number78  hi def link decNumber		Number79  hi def link octNumber		Number80  hi def link binNumber		Number81  hi def link tiasmHexadecimal	hexNumber82  hi def link tiasmDecimal	decNumber83  hi def link tiasmOctal		octNumber84  hi def link tiasmBinary		binNumber85else86  hi def link tiasmHexadecimal	Number87  hi def link tiasmDecimal	Number88  hi def link tiasmOctal		Number89  hi def link tiasmBinary		Number90endif91hi def link tiasmFloat		Float92 93hi def link tiasmString		String94hi def link tiasmStringEscape	Special95hi def link tiasmCharacter	Character96hi def link tiasmCharacterEscape	Special97 98hi def link tiasmIdentifier	Identifier99hi def link tiasmType		Type100hi def link tiasmFunction	Function101 102let b:current_syntax = "tiasm"103 
codekingpro/portable-devtools · Team Ai