浏览代码

core: allow c++ style of one line comments

- can make easier the read of config files with defines and comments
Daniel-Constantin Mierla 12 年之前
父节点
当前提交
584508d537
共有 1 个文件被更改,包括 1 次插入1 次删除
  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-]*)+
 
 
-COM_LINE	#
+COM_LINE	"#"|"//"
 COM_START	"/\*"
 COM_END		"\*/"