nolanderc / glsl_analyzer

Language server for GLSL (autocomplete, goto-definition, formatter, and more)
GNU General Public License v3.0
201 stars 6 forks source link

Fix parser defects #31

Closed nolanderc closed 1 year ago

nolanderc commented 1 year ago

Fixes most of the defects found in #15 and #21.

The only remaining file which produces complaints is tokenPaste.vert which contains a bunch of edge cases for #define. We currently only accept macro expansion where declarations are allowed (e.g., int foo) as well as in expressions. However, in #30 I describe one approach for dealing with macros more generally in more positions.

Closes #21 (tokenPaste.vert is delegated to #30)