CMSIS-DSP: Minor cleaning and script for color syntax of test
descriptionspull/19/head
parent
3b5bcc421f
commit
bd19f75d4f
@ -0,0 +1,20 @@
|
||||
from pygments.lexer import RegexLexer, bygroups,words
|
||||
from pygments.token import *
|
||||
|
||||
class CustomLexer(RegexLexer):
|
||||
name = 'Example Lexer for test desc'
|
||||
|
||||
tokens = {
|
||||
'root': [
|
||||
(words(("group","suite","class","folder","ParamList")), Keyword),
|
||||
(words(("Pattern","Output","Params","oldID")), Keyword.Type),
|
||||
(words(("Summary","Names","Formula","Functions")), Name.Function),
|
||||
(r'\"[^\"]*\"',String),
|
||||
(r'[a-zA-Z_][a-zA-Z_0-9\.]*',Text),
|
||||
(r'[-+]?[0-9]+',Number),
|
||||
(r'([=:\[\]]|->)',Operator),
|
||||
(r'[\s\t]+',Text),
|
||||
(r'[,{}]',Text),
|
||||
(r'//.*?$', Comment.Singleline),
|
||||
]
|
||||
}
|
||||
Loading…
Reference in New Issue