p4t5h3 / purebasic-language-for-sublime-text

PureBasic support for Sublime Text.
MIT License
4 stars 1 forks source link

Correctly match pointers #21

Closed p4t5h3 closed 2 years ago

p4t5h3 commented 2 years ago

This is a tricky one. Currently I do not know how to achieve this. Hence this is not assigned to a milestone yet.

To my current knowledge, expressions involving pointers can only be interpreted correctly by considering previous declarations. This semantic analysis goes beyond the capabilities of a syntax definition.

Or maybe there can be formulated a set of rules which cover all cases in which pointers can reliably matched.

Asterisks of pointers can be distinguished from the multiplication operator, if the preceding pattern is not a numeric literal or series of word characters. Right? 🤔