Ver Fonte

core: allow c++ style of one line comments

- can make easier the read of config files with defines and comments
Daniel-Constantin Mierla há 12 anos atrás
pai
commit
584508d537
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      cfg.lex

+ 1 - 1
cfg.lex

@@ -540,7 +540,7 @@ CR			\n
 EVENT_RT_NAME [a-zA-Z][0-9a-zA-Z-]*(":"[a-zA-Z][0-9a-zA-Z-]*)+
 EVENT_RT_NAME [a-zA-Z][0-9a-zA-Z-]*(":"[a-zA-Z][0-9a-zA-Z-]*)+
 
 
 
 
-COM_LINE	#
+COM_LINE	"#"|"//"
 COM_START	"/\*"
 COM_START	"/\*"
 COM_END		"\*/"
 COM_END		"\*/"