From 548761d901b54f405227ee6e937f330675de5872 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Sat, 10 Aug 2019 20:35:50 -0400 Subject: [PATCH] use // comments for cpp compatibility. --- string_compiler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/string_compiler.py b/string_compiler.py index 42337ca..36f9610 100644 --- a/string_compiler.py +++ b/string_compiler.py @@ -160,7 +160,8 @@ def read_data(f, name): ln = ln + 1 line = line.strip() if line == "" : continue - if line[0] == "#" : continue + if line.startswith("#"): continue + if line.startswith("//"): continue m = re.match(r'^"([^"]*)"\s+(\d+|0x[A-Fa-f0-9]+)$', line) if not m: