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 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, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <geany/geany/issues/3561/1733056169@github.com>