I noticed that the new fontification is much busier than cc-mode, so hereâs some of my thoughts: :language mode :override t :feature 'expression '((assignment_expression left: (identifier) @font-lock-variable-name-face) I think assignment should be isolated out to an âassignmentâ feature, where we highlight the lhs target of the assignment: the identifier, the field, etc. For example, the assignment group in Python [1] (call_expression function: (identifier) @font-lock-function-name-face) (field_expression field: (field_identifier) @font-lock-variable-name-face) (field_expression argument: (identifier) @font-lock-variable-name-face field: (field_identifier) @font-lock-variable-name-face) (pointer_expression argument: (identifier) @font-lock-variable-name-face)) They highlight every single use of functions and fields, so they should be level 3. (And Iâll disable them personally :-) Highlighting the field and the functions should be two different features IMO. :language mode :override t :feature 'statement '((expression_statement (identifier) @font-lock-variable-name-face) (labeled_statement label: (statement_identifier) @font-lock-type-face)) What does this rule highlight? [1] :feature 'assignment :language 'python `(;; Variable names and LHS. (assignment left: (identifier) @font-lock-variable-name-face) (assignment left: (attribute attribute: (identifier) @font-lock-variable-name-face)) (pattern_list (identifier) @font-lock-variable-name-face) (tuple_pattern (identifier) @font-lock-variable-name-face) (list_pattern (identifier) @font-lock-variable-name-face) (list_splat_pattern (identifier) @font-lock-variable-name-face)) Yuan
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4