Jelajahi Sumber

core: allow c++ style of one line comments

- can make easier the read of config files with defines and comments
Daniel-Constantin Mierla 12 tahun lalu
induk
melakukan
584508d537
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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		"\*/"