Discussion:
CategoriseCharacter function added
Neil Hodgson
2013-07-01 09:16:00 UTC
Permalink
Some languages define the allowed characters for features like identifiers by reference to the Unicode standard's categorisation of characters. For example a language may specify that identifiers have to start with a character in Ll (lowercase letter) followed by multiple Ll or Lu (uppercase letter).

A function, CategoriseCharacter, is now available in Scintilla so that lexers can easily determine the category of a character.

enum CharacterCategory {
ccLu, ccLl, ccLt, ccLm, ccLo,
ccMn, ccMc, ccMe,
ccNd, ccNl, ccNo,
ccPc, ccPd, ccPs, ccPe, ccPi, ccPf, ccPo,
ccSm, ccSc, ccSk, ccSo,
ccZs, ccZl, ccZp,
ccCc, ccCf, ccCs, ccCo, ccCn
};

CharacterCategory CategoriseCharacter(int character);

Neil
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.
Fan Yang
2013-07-07 05:30:10 UTC
Permalink
The Qt port project file fix attached.
Post by Neil Hodgson
Some languages define the allowed characters for features like
identifiers by reference to the Unicode standard's categorisation of
characters. For example a language may specify that identifiers have to
start with a character in Ll (lowercase letter) followed by multiple Ll or
Lu (uppercase letter).
A function, CategoriseCharacter, is now available in Scintilla so that
lexers can easily determine the category of a character.
enum CharacterCategory {
ccLu, ccLl, ccLt, ccLm, ccLo,
ccMn, ccMc, ccMe,
ccNd, ccNl, ccNo,
ccPc, ccPd, ccPs, ccPe, ccPi, ccPf, ccPo,
ccSm, ccSc, ccSk, ccSo,
ccZs, ccZl, ccZp,
ccCc, ccCf, ccCs, ccCo, ccCn
};
CharacterCategory CategoriseCharacter(int character);
Neil
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.
Neil Hodgson
2013-07-07 06:06:45 UTC
Permalink
Post by Fan Yang
The Qt port project file fix attached.
OK, committed.

I don't understand why it was building OK on Linux without that change.

Neil
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.
Loading...