branch: externals/phps-mode commit f0912eee6c90a1b7863be95faf76981b0f8cceff Author: Christian Johansson <christ...@cvj.se> Commit: Christian Johansson <christ...@cvj.se>
Removed TODO and changed syntax color to be based on tokens only --- docs/todo.md | 2 -- phps-mode-lexer.el | 15 --------------- 2 files changed, 17 deletions(-) diff --git a/docs/todo.md b/docs/todo.md deleted file mode 100644 index 822eef7..0000000 --- a/docs/todo.md +++ /dev/null @@ -1,2 +0,0 @@ -* Also format white-space inside the line, i.e. after function declarations? -* Fix imenu with multiple namespaces diff --git a/phps-mode-lexer.el b/phps-mode-lexer.el index 6b6a7e3..b2eb694 100644 --- a/phps-mode-lexer.el +++ b/phps-mode-lexer.el @@ -214,21 +214,6 @@ ;; (message "Color token %s %s %s" token start end) (cond - ((and - phps-mode-lexer-COLOR_SYNTAX-previous-token - (string= phps-mode-lexer-COLOR_SYNTAX-previous-token 'T_CONST) - (string= token 'T_STRING)) - (overlay-put (make-overlay start end) 'font-lock-face 'font-lock-constant-face)) - - ((and - phps-mode-lexer-COLOR_SYNTAX-previous-token - (or (string= phps-mode-lexer-COLOR_SYNTAX-previous-token 'T_NAMESPACE) - (string= phps-mode-lexer-COLOR_SYNTAX-previous-token 'T_NS_SEPARATOR) - (string= phps-mode-lexer-COLOR_SYNTAX-previous-token 'T_CLASS) - (string= phps-mode-lexer-COLOR_SYNTAX-previous-token 'T_FUNCTION)) - (string= token 'T_STRING)) - (overlay-put (make-overlay start end) 'font-lock-face 'font-lock-function-name-face)) - ((or (string= token 'T_VARIABLE) (string= token 'T_STRING_VARNAME))