@@ -17,7 +17,7 @@ class HlbLexer(RegexLexer):
1717 (u'((\\ b(0(b|B|o|O|x|X)[a-fA-F0-9]+)\\ b)|(\\ b(0|[1-9][0-9]*)\\ b)|(\\ b(true|false)\\ b))' , bygroups (Name .Constant )),
1818 (u'(\" )' , bygroups (Punctuation ), 'common__1' ),
1919 (u'(<<[-~]?)([A-Z]+)' , bygroups (Punctuation , Name .Constant ), 'common__2' ),
20- (u'(\\ bstring\\ b|\\ bint\\ b|\\ bbool\\ b|\\ bfs\\ b|\\ bgroup\\ b|\\ boption(?!::)\\ b|\\ boption::(?:copy|frontend|git|http|image|local|mkdir|mkfile|mount|rm|run|secret|ssh)\\ b)' , bygroups (Keyword .Type )),
20+ (u'(\\ bstring\\ b|\\ bint\\ b|\\ bbool\\ b|\\ bfs\\ b|\\ bgroup\\ b|\\ boption(?!::)\\ b|\\ boption::(?:copy|frontend|git|http|image|local|mkdir|mkfile|mount|rm|run|secret|ssh|template )\\ b)' , bygroups (Keyword .Type )),
2121 (u'(\\ b[a-zA-Z_][a-zA-Z0-9]*\\ b)(\\ ()' , bygroups (Keyword , Punctuation ), 'params' ),
2222 (u'(\\ ))' , bygroups (Generic .Error )),
2323 (u'(\\ {)' , bygroups (Punctuation ), 'block' ),
@@ -31,8 +31,8 @@ class HlbLexer(RegexLexer):
3131 (u'(\" )' , bygroups (Punctuation ), 'common__1' ),
3232 (u'(<<[-~]?)([A-Z]+)' , bygroups (Punctuation , Name .Constant ), 'common__2' ),
3333 (u'(\\ b(with|as|variadic)\\ b)' , bygroups (Name .Builtin )),
34- (u'(\\ bstring\\ b|\\ bint\\ b|\\ bbool\\ b|\\ bfs\\ b|\\ bgroup\\ b|\\ boption(?!::)\\ b|\\ boption::(?:copy|frontend|git|http|image|local|mkdir|mkfile|mount|rm|run|secret|ssh)\\ b)(?:[\\ t ]+)(\\ {)' , bygroups (Keyword .Type , Punctuation ), 'block' ),
35- (u'(\\ b((?!(allowEmptyWildcard|allowNotFound|allowWildcard|cache|checksum|chmod|chown|contentsOnly|copy|createDestPath|createParents|createdTime|dir|dockerLoad|dockerPush|download|downloadDockerTarball|downloadOCITarball|downloadTarball|env|excludePatterns|filename|followPaths|followSymlinks|format|forward|frontend|gid|git|host|http|id|ignoreCache|image|includePatterns|input|insecure|keepGitDir|local|localEnv|localPaths|locked|mkdir|mkfile|mode|mount|network|node|opt|parallel|private|readonly|readonlyRootfs|resolve|rm|run|sandbox|scratch|secret|security|shared|sourcePath|ssh|target|tmpfs|uid|unix|unpack|unset|user|value)\\ b)[a-zA-Z_][a-zA-Z0-9]*\\ b))' , bygroups (Name .Variable )),
34+ (u'(\\ bstring\\ b|\\ bint\\ b|\\ bbool\\ b|\\ bfs\\ b|\\ bgroup\\ b|\\ boption(?!::)\\ b|\\ boption::(?:copy|frontend|git|http|image|local|mkdir|mkfile|mount|rm|run|secret|ssh|template )\\ b)(?:[\\ t ]+)(\\ {)' , bygroups (Keyword .Type , Punctuation ), 'block' ),
35+ (u'(\\ b((?!(allowEmptyWildcard|allowNotFound|allowWildcard|cache|checksum|chmod|chown|contentsOnly|copy|createDestPath|createParents|createdTime|dir|dockerLoad|dockerPush|download|downloadDockerTarball|downloadOCITarball|downloadTarball|env|excludePatterns|filename|followPaths|followSymlinks|format|forward|frontend|gid|git|host|http|id|ignoreCache|image|includePatterns|input|insecure|keepGitDir|local|localEnv|localPaths|locked|mkdir|mkfile|mode|mount|network|node|opt|parallel|private|readonly|readonlyRootfs|resolve|rm|run|sandbox|scratch|secret|security|shared|sourcePath|ssh|stringField| target|template |tmpfs|uid|unix|unpack|unset|user|value)\\ b)[a-zA-Z_][a-zA-Z0-9]*\\ b))' , bygroups (Name .Variable )),
3636 ('(\n |\r |\r \n )' , String ),
3737 ('.' , String ),
3838 ],
@@ -45,7 +45,7 @@ class HlbLexer(RegexLexer):
4545 ('.' , String ),
4646 ],
4747 'params' : [
48- (u'(\\ bstring\\ b|\\ bint\\ b|\\ bbool\\ b|\\ bfs\\ b|\\ bgroup\\ b|\\ boption(?!::)\\ b|\\ boption::(?:copy|frontend|git|http|image|local|mkdir|mkfile|mount|rm|run|secret|ssh)\\ b)' , bygroups (Keyword .Type )),
48+ (u'(\\ bstring\\ b|\\ bint\\ b|\\ bbool\\ b|\\ bfs\\ b|\\ bgroup\\ b|\\ boption(?!::)\\ b|\\ boption::(?:copy|frontend|git|http|image|local|mkdir|mkfile|mount|rm|run|secret|ssh|template )\\ b)' , bygroups (Keyword .Type )),
4949 (u'(\\ b[a-zA-Z_][a-zA-Z0-9]*\\ b)' , bygroups (Name .Variable )),
5050 ('(\n |\r |\r \n )' , String ),
5151 ('.' , String ),
0 commit comments