xaizek / zograscope

Mainly a syntax-aware diff that also provides a number of additional tools.
GNU Affero General Public License v3.0
51 stars 2 forks source link

Makefile parsing fails #3

Closed tritao closed 5 years ago

tritao commented 5 years ago

Just tried to highlight a Makefile with zs-hi and get a parsing error.

➜  zograscope git:(master) ./zs-hi --lang make ../nuttx/arch/arm/src/Makefile
../nuttx/arch/arm/src/Makefile:168:43: parse error: syntax error, unexpected ':', expecting NL or LEADING_TAB
Failed to parse: ../nuttx/arch/arm/src/Makefile

Makefile: https://gist.github.com/tritao/50b838d940ff4a5c753361e9c513e03f

xaizek commented 5 years ago

Thanks. Static pattern rules and colon in the first argument of a function call should be parsed fine now.

tritao commented 5 years ago

Thanks so much for the fixes.