Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ynsta/steamcontroller.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStany MARCEL <stanypub@gmail.com>2015-11-12 02:08:31 +0300
committerStany MARCEL <stanypub@gmail.com>2015-11-12 02:08:31 +0300
commit11c1187ee5c797d37c6b46fa197a96ad4af696d7 (patch)
tree91f363ce536b1c9ab0aa6cb4edfeff009bf1d722 /src
parent5325088b5162359f0535d60295063bdfa6fd6939 (diff)
Correct an error on c comment parsing
Signed-off-by: Stany MARCEL <stanypub@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/cheader.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cheader.py b/src/cheader.py
index 67416a7..210b13c 100644
--- a/src/cheader.py
+++ b/src/cheader.py
@@ -90,7 +90,7 @@ def defines(base, include):
out = OrderedDict()
def parse_c_comments(lexer, tok, ntok):
- if tok != '/' or ntok == '*':
+ if tok != '/' or ntok != '*':
return False
quotes = lexer.quotes
lexer.quotes = ''
@@ -105,7 +105,7 @@ def defines(base, include):
return True
def parse_cpp_comments(lexer, tok, ntok):
- if tok != '/' or ntok == '/':
+ if tok != '/' or ntok != '/':
return False
quotes = lexer.quotes
lexer.quotes = ''