Skip to content

Commit

Permalink
Added debug_mode back to config; use r-strings in regex tokenizer
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasdoehne committed Nov 27, 2018
1 parent 78080dd commit 2a62507
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
4 changes: 3 additions & 1 deletion stellarisdashboard/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ class Config:
save_name_filter: str = None
read_only_every_nth_save: int = None

only_read_player_history = False
only_read_player_history: bool = None

debug_mode: bool = False

PATH_KEYS = {
"base_output_path",
Expand Down
16 changes: 8 additions & 8 deletions stellarisdashboard/token_value_stream_re.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import re

WHITESPACE = re.compile('[\t\n ]*')
EQ = re.compile('=')
BR_OPEN = re.compile('{')
BR_CLOSE = re.compile('}')
Q_STR = re.compile('"((\\\\\")|[^"])*"')
IDENTIFIER = re.compile('[0-9_]*[a-zA-Z_]+[a-zA-Z0-9_:]*')
FLOAT = re.compile('-?[0-9]+\.[0-9]*')
INT = re.compile('-?[0-9]+')
WHITESPACE = re.compile(r'[\t\n ]*')
EQ = re.compile(r'=')
BR_OPEN = re.compile(r'{')
BR_CLOSE = re.compile(r'}')
Q_STR = re.compile(r'"((\\")|[^"])*"')
IDENTIFIER = re.compile(r'[0-9_]*[a-zA-Z_]+[a-zA-Z0-9_:]*')
FLOAT = re.compile(r'-?[0-9]+\.[0-9]*')
INT = re.compile(r'-?[0-9]+')

REG_EXES = [
BR_OPEN,
Expand Down

0 comments on commit 2a62507

Please sign in to comment.