mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-26 09:54:18 +00:00
parser: don't enforce variable naming convention (#761)
This commit is contained in:
@@ -535,13 +535,6 @@ class DecompParser:
|
||||
variable_name = get_synthetic_name(line)
|
||||
else:
|
||||
variable_name = get_variable_name(line)
|
||||
# This is out of our control for library variables, but all of our
|
||||
# variables should start with "g_".
|
||||
if variable_name is not None:
|
||||
# Before checking for the prefix, remove the
|
||||
# namespace chain if there is one.
|
||||
if not variable_name.split("::")[-1].startswith("g_"):
|
||||
self._syntax_warning(ParserError.GLOBAL_MISSING_PREFIX)
|
||||
|
||||
string_name = get_string_contents(line)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user