nolanderc / glsl_analyzer

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

Fix parser defects #31

Closed nolanderc closed 11 months ago

nolanderc commented 11 months 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)