ms_dosbl.xs.svn-base

来自「支持自定义语法高亮显示的编辑器控件」· SVN-BASE 代码 · 共 68 行

SVN-BASE
68
字号
//Language: MS Dos batch
//Copyright (c) 1992-2002 Altium Limited             
//All rights reserved.                               
//http://www.dream-com.com                           
//contact@dream-com.com                              

// states
State=snormal
State=sstring
State=scomment1
State=scomment2
// tokens
Token=tnone
Token=tstring
Token=tcomment
Token=tident
Token=tinteger
Token=tfloat
Token=tresword
Token=tassembler
Token=turl
Token=twhitespace
Token=tdirective
//delims
Delimiters=;.,:'"{}[]()?!@#$%^&*-+=|\/

// reswords
snormal 'call'       snormal tresword
snormal 'do'         snormal tresword
snormal 'echo'       snormal tresword
snormal 'errorlevel' snormal tresword
snormal 'exist'      snormal tresword
snormal 'for'        snormal tresword
snormal 'goto'       snormal tresword
snormal 'if'         snormal tresword
snormal 'in'         snormal tresword
snormal 'not'        snormal tresword
snormal 'pause'      snormal tresword
//snormal 'rem'        snormal tresword
snormal 'set'        snormal tresword
snormal 'shift'      snormal tresword

// numbers
snormal [1-9][0-9]*                            snormal  tinteger
snormal [1-9][0-9]*\.[0-9]*                    snormal  tfloat
snormal [1-9][0-9]*{\.[0-9]+}|e{[\+\-]}|[0-9]+ snormal  tfloat

//idents
snormal   [a-z_A-Z][a-z_A-Z0-9]*  snormal   tident

//white space
snormal #32*                      snormal   twhitespace

//comments
snormal     rem[^#33-#255]          scomment1  tcomment
scomment1   [#1-#255]*              snormal    tcomment
scomment1   $                       snormal    tcomment

snormal     \:                      scomment2  tcomment
scomment2   [#1-#255]*              snormal    tcomment
scomment2   $                       snormal    tcomment

//strings
snormal   \"                     sstring   tstring
sstring   [^\"]*                 sstring   tstring
sstring   \"                     snormal   tstring
sstring   $                      snormal   tstring

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?