To be clear, identification of lexical elements for highlighting and folding is 
done by pieces of C++ code specific to the source language being analysed.  The 
C lexer is different code to the PHP lexer to the shell lexer etc.  The 
features and facilities that one lexer has is irrelevant to another lexer, so 
the fact that the C lexer (also used for Javascript) folds on most bracket like 
constructs has no implication on what the PHP lexer folds on.  There is little 
or no documentation on what the lexers do, but from the code PHP (and embedded 
JS) only folds on `{}` and optionally comments, not any other constructs.

The lexers are from the [Lexilla](https://github.com/ScintillaOrg/lexilla) 
project, to change or add features they should be added there and they will be 
imported into Geany when it is updated to the relevant version.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3561#issuecomment-1733056169
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/issues/3561/[email protected]>

Reply via email to