summaryrefslogtreecommitdiff
path: root/Compiler/Preprocessor.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Compiler/Preprocessor.cs')
-rw-r--r--Compiler/Preprocessor.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Compiler/Preprocessor.cs b/Compiler/Preprocessor.cs
index 01c14ab..fba28c1 100644
--- a/Compiler/Preprocessor.cs
+++ b/Compiler/Preprocessor.cs
@@ -50,7 +50,7 @@ public static class Preprocessor
}
// expand macros
- foreach (KeyValuePair<string, string> kvp in Defines)
+ foreach (KeyValuePair<string, string> kvp in Defines.OrderByDescending(k => k.Key.Length))
line = line.Replace(kvp.Key, kvp.Value);
output.Add(line);