From 13b6f88d9b4710e1c51b36a97c3b45a6441a7820 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 27 Apr 2021 10:04:57 +1000 Subject: Rename CharacterSet and CharacterCategory modules in Scintilla to CharacterType and CharacterCategoryMap to avoid clashes with Lexilla when building an executable that includes both. --- scripts/GenerateCharacterCategory.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'scripts/GenerateCharacterCategory.py') diff --git a/scripts/GenerateCharacterCategory.py b/scripts/GenerateCharacterCategory.py index 271381064..806dea2fe 100644 --- a/scripts/GenerateCharacterCategory.py +++ b/scripts/GenerateCharacterCategory.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 -# Script to generate CharacterCategory.cxx from Python's Unicode data +# Script to generate scintilla/src/CharacterCategoryMap.cxx and lexilla/lexlib/CharacterCategory.cxx +# from Python's Unicode data # Should be run rarely when a Python with a new version of Unicode data is available. # Requires Python 3.3 or later # Should not be run with old versions of Python. @@ -45,8 +46,8 @@ def updateCharacterCategory(filename): scintillaDirectory = pathlib.Path(__file__).resolve().parent.parent -categories = findCategories(scintillaDirectory / "src" / "CharacterCategory.h") +categories = findCategories(scintillaDirectory / "src" / "CharacterCategoryMap.h") -updateCharacterCategory(scintillaDirectory / "src" / "CharacterCategory.cxx") +updateCharacterCategory(scintillaDirectory / "src" / "CharacterCategoryMap.cxx") updateCharacterCategory(scintillaDirectory.parent / "lexilla" / "lexlib" / "CharacterCategory.cxx") -- cgit v1.2.3