diff --git a/README.md b/README.md index 0dd8fe5..8ab09cf 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,10 @@ Add following lines to your init file: ### ChangeLog +0.4 + + * Add QML component id highlighter + * Add basic types provided by QML modules as property keyword 0.3 diff --git a/qml-mode.el b/qml-mode.el index 05d0ffc..1af5c6a 100644 --- a/qml-mode.el +++ b/qml-mode.el @@ -2,10 +2,11 @@ ;; Copyright (C) 2010 Wen-Chun Lin ;; Copyright (C) 2013-2016 Yen-Chin Lee +;; Copyleft (C) 2016 Ono Hiroko (@kuanyui) ;; Author: Yen-Chin Lee ;; URL: https://github.com/coldnew/qml-mode -;; Version: 0.3 +;; Version: 0.4 ;; Keywords: qml, qt, qt declarative ;; This file is NOT part of GNU Emacs. @@ -43,6 +44,11 @@ ;;; ChangeLog ;; +;; 0.4 +;; +;; * Add QML component id highlighter +;; * Add basic types provided by QML modules as property keyword +;; ;; 0.3 ;; ;; * rewrite based on js-mode. @@ -124,7 +130,10 @@ (defconst qml--property '("bool" "double" "real" "int" "string" "url" "color" "date" - "variant" "alias")) + "variant" "alias" + "font" "matrix4x4" "point" "quaternion" "rect" "size" "vector2d" "vector3d" "vector4d" + )) + (defconst qml--property-re (concat "\\(property[ \t]+" (qml--list-to-string qml--property) "\\)+[ \t]+\\([a-zA-Z_]+[a-zA-Z0-9_]*\\)")) @@ -158,7 +167,7 @@ ;; Constant (,qml--constants-re (0 font-lock-constant-face)) (,js--constant-re (0 font-lock-constant-face)) - ("\\