martin-helmich / typo3-typoscript-lint

Find coding errors in your TypoScript files.
MIT License
82 stars 19 forks source link

Tokenizer error on double quoted import #89

Closed saitho closed 4 years ago

saitho commented 4 years ago

TypoScript imports with double quotes will lead to a tokenizer error.

=> /home/saitho/Workspace/typo3ext/Configuration/TypoScript/setup.typoscript.
  39 Tokenization error: Cannot tokenize line "@import "EXT:typo3ext/Configuration/TypoScript/Setup/Module/module.typo3ext.typoscript""

Not sure what TYPO3 guidelines say about using single or double quotes here. Technically both work, so the linter should not throw an error here. If guidelines say one should use single quotes, it could output a proper hint for that. :)

saitho commented 4 years ago

Just noticed this is an issue for the parser. Opened a PR there: https://github.com/martin-helmich/typo3-typoscript-parser/pull/46

martin-helmich commented 4 years ago

Fixed via martin-helmich/typo3-typoscript-parser#46