work save
This commit is contained in:
parent
237e86cea0
commit
22341d11fa
|
@ -616,8 +616,9 @@ void CppTokenizer::advance()
|
|||
|
||||
bool CppTokenizer::isLetterChar(const QChar &ch)
|
||||
{
|
||||
return (ch>= 'A' && ch<='Z')
|
||||
|| (ch>='a' && ch<='z')
|
||||
// return (ch>= 'A' && ch<='Z')
|
||||
// || (ch>='a' && ch<='z')
|
||||
return ch.isLetter()
|
||||
|| ch == '_'
|
||||
|| ch == '*'
|
||||
|| ch == '&'
|
||||
|
|
|
@ -1589,3 +1589,8 @@ SynRangeState SynEditCppHighlighter::getRangeState() const
|
|||
{
|
||||
return mRange;
|
||||
}
|
||||
|
||||
bool SynEditCppHighlighter::isIdentChar(const QChar &ch) const
|
||||
{
|
||||
return ch=='_' || ch.isDigit() || ch.isLetter();
|
||||
}
|
||||
|
|
|
@ -186,6 +186,10 @@ public:
|
|||
// SynHighlighter interface
|
||||
public:
|
||||
SynRangeState getRangeState() const override;
|
||||
|
||||
// SynHighlighter interface
|
||||
public:
|
||||
bool isIdentChar(const QChar &ch) const override;
|
||||
};
|
||||
|
||||
#endif // SYNEDITCPPHIGHLIGHTER_H
|
||||
|
|
Loading…
Reference in New Issue