You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In ANTLR grammar, DECIMAL's expression is 'DEC_INTEGER DEC_FRAC? FLOAT_EXP?', and INTEGER's expression is 'DEC_INTEGER'. We cannot simply copy these expressions in TextMate. If we put INTEGER before DECIMAL, there will be some problems. For example, for the number '123.456', the part '123' will be recognized as INTEGER, while the rest doesn't have a scope. And if we put DECIMAL before INTEGER, an INTEGER will be always recognized as DECIMAL. I am wondering whether there is a way to make it solve this problem. For now, I simply changed the expression of DECIMAL into 'DEC_INTEGER (?: DEC_FRAC FLOAT_EXP | DEC_FRAC | FLOAT_EXP)', and put DECIMAL before INTEGER, in order to make it work.
The text was updated successfully, but these errors were encountered:
In ANTLR grammar, DECIMAL's expression is 'DEC_INTEGER DEC_FRAC? FLOAT_EXP?', and INTEGER's expression is 'DEC_INTEGER'. We cannot simply copy these expressions in TextMate. If we put INTEGER before DECIMAL, there will be some problems. For example, for the number '123.456', the part '123' will be recognized as INTEGER, while the rest doesn't have a scope. And if we put DECIMAL before INTEGER, an INTEGER will be always recognized as DECIMAL. I am wondering whether there is a way to make it solve this problem. For now, I simply changed the expression of DECIMAL into 'DEC_INTEGER (?: DEC_FRAC FLOAT_EXP | DEC_FRAC | FLOAT_EXP)', and put DECIMAL before INTEGER, in order to make it work.
The text was updated successfully, but these errors were encountered: