diff options
author | Neil <nyamatongwe@gmail.com> | 2017-03-23 17:49:50 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2017-03-23 17:49:50 +1100 |
commit | 40468d40088ea0657d8046747a69c9e99821a403 (patch) | |
tree | 90461250a824f81b38a19aac3176b8911b422d9a /lexlib/CharacterCategory.h | |
parent | 54012e88adcb0fa83afdd1626aab55066c2e8247 (diff) | |
download | scintilla-mirror-40468d40088ea0657d8046747a69c9e99821a403.tar.gz |
The Python lexer recognizes identifiers more accurately when they include
non-ASCII characters.
Calls provided for determining whether characters are in the sets defined for
identifiers by the Unicode standard in UAX #31.
Diffstat (limited to 'lexlib/CharacterCategory.h')
-rw-r--r-- | lexlib/CharacterCategory.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lexlib/CharacterCategory.h b/lexlib/CharacterCategory.h index c8600504b..05ea4187b 100644 --- a/lexlib/CharacterCategory.h +++ b/lexlib/CharacterCategory.h @@ -24,6 +24,12 @@ enum CharacterCategory { CharacterCategory CategoriseCharacter(int character); +// Common definitions of allowable characters in identifiers from UAX #31. +bool IsIdStart(int character); +bool IsIdContinue(int character); +bool IsXidStart(int character); +bool IsXidContinue(int character); + #ifdef SCI_NAMESPACE } #endif |