From 90b1dae39aedc7fb978c55d6e7d74f502ab8a879 Mon Sep 17 00:00:00 2001 From: Lev Lamberov Date: Tue, 23 May 2017 07:22:53 -0300 Subject: Import qml-mode_0.4-1.debian.tar.xz [dgit import tarball qml-mode 0.4-1 qml-mode_0.4-1.debian.tar.xz] --- changelog | 5 +++++ compat | 1 + control | 26 ++++++++++++++++++++++++++ copyright | 30 ++++++++++++++++++++++++++++++ docs | 1 + elpa | 1 + patches/0001-fix-documentation.diff | 22 ++++++++++++++++++++++ patches/series | 1 + rules | 4 ++++ source/format | 1 + watch | 4 ++++ 11 files changed, 96 insertions(+) create mode 100644 changelog create mode 100644 compat create mode 100644 control create mode 100644 copyright create mode 100644 docs create mode 100644 elpa create mode 100644 patches/0001-fix-documentation.diff create mode 100644 patches/series create mode 100755 rules create mode 100644 source/format create mode 100644 watch diff --git a/changelog b/changelog new file mode 100644 index 0000000..8a466f7 --- /dev/null +++ b/changelog @@ -0,0 +1,5 @@ +qml-mode (0.4-1) unstable; urgency=medium + + * Initial release (Closes: #863200) + + -- Lev Lamberov Tue, 23 May 2017 15:22:53 +0500 diff --git a/compat b/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/compat @@ -0,0 +1 @@ +10 diff --git a/control b/control new file mode 100644 index 0000000..719c357 --- /dev/null +++ b/control @@ -0,0 +1,26 @@ +Source: qml-mode +Section: lisp +Priority: optional +Maintainer: Debian Emacs addons team +Uploaders: Lev Lamberov +Build-Depends: debhelper (>= 10), + dh-elpa +Standards-Version: 3.9.8 +Homepage: https://github.com/coldnew/qml-mode +Vcs-Browser: https://anonscm.debian.org/cgit/pkg-emacsen/pkg/qml-mode.git/ +Vcs-Git: https://anonscm.debian.org/git/pkg-emacsen/pkg/qml-mode.git + +Package: elpa-qml-mode +Architecture: all +Depends: ${elpa:Depends}, + ${misc:Depends}, + emacsen-common (>= 2.0.8) +Recommends: emacs (>= 46.0) +Enhances: emacs, + emacs24, + emacs25 +Built-Using: ${misc:Built-Using} +Description: Emacs major mode for editing QT Declarative (QML) code + The package provides a major mode for editing Qt Declarative (QML) + code in Emacs. It features syntax highlighting (including component + ids highlighting) and basic navigation capabilities. diff --git a/copyright b/copyright new file mode 100644 index 0000000..6cedcc5 --- /dev/null +++ b/copyright @@ -0,0 +1,30 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: qml-mode +Source: https://github.com/coldnew/qml-mode + +Files: * +Copyright: (C) 2010 Wen-Chun Lin + (C) 2013-2016 Yen-Chin Lee + (C) 2016 Ono Hiroko +License: GPL-2+ + +Files: debian/* +Copyright: (C) 2017 Lev Lamberov +License: GPL-2+ + +License: GPL-2+ + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 2 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see . + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in `/usr/share/common-licenses/GPL-2' diff --git a/docs b/docs new file mode 100644 index 0000000..dd44972 --- /dev/null +++ b/docs @@ -0,0 +1 @@ +*.md diff --git a/elpa b/elpa new file mode 100644 index 0000000..abf136d --- /dev/null +++ b/elpa @@ -0,0 +1 @@ +*.el diff --git a/patches/0001-fix-documentation.diff b/patches/0001-fix-documentation.diff new file mode 100644 index 0000000..b56f672 --- /dev/null +++ b/patches/0001-fix-documentation.diff @@ -0,0 +1,22 @@ +From: Lev Lamberov +Subject: Remove badge icons from README file + +This patch removes badges icons from README file. These icons are +intended rather for developers and are loaded from several external +web sites. + +--- a/README.md ++++ b/README.md +@@ -1,12 +1,6 @@ + ## qml-mode.el + *Major mode for editing QT Declarative (QML) code.* + +---- +-[![License GPLv2](https://img.shields.io/badge/license-GPL_v2-green.svg)](http://www.gnu.org/licenses/gpl-2.0.html) +-[![MELPA](http://melpa.org/packages/qml-mode-badge.svg)](http://melpa.org/#/qml-mode) +-[![MELPA Stable](http://stable.melpa.org/packages/qml-mode-badge.svg)](http://stable.melpa.org/#/qml-mode) +- +- + qml-mode is major-mode for editing Qt Declarative (QML) code. + + diff --git a/patches/series b/patches/series new file mode 100644 index 0000000..db340cf --- /dev/null +++ b/patches/series @@ -0,0 +1 @@ +0001-fix-documentation.diff diff --git a/rules b/rules new file mode 100755 index 0000000..e8e22ba --- /dev/null +++ b/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ --with elpa diff --git a/source/format b/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/watch b/watch new file mode 100644 index 0000000..b2a031a --- /dev/null +++ b/watch @@ -0,0 +1,4 @@ +version=4 + opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%qml-mode-$1.tar.gz%" \ + https://github.com/coldnew/qml-mode/tags \ + (?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate -- cgit v1.2.3 From e3c3a5add690c79998f4bc31e8f4081955204f96 Mon Sep 17 00:00:00 2001 From: Lev Lamberov Date: Tue, 23 May 2017 07:22:53 -0300 Subject: Import qml-mode_0.4.orig.tar.gz [dgit import orig qml-mode_0.4.orig.tar.gz] --- Makefile | 19 ++++ README.md | 59 +++++++++++++ qml-mode.el | 281 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 359 insertions(+) create mode 100644 Makefile create mode 100644 README.md create mode 100644 qml-mode.el diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e9a91f1 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +EMACS ?= emacs +BATCH := $(EMACS) $(EFLAGS) -batch -q -no-site-file -L . + +all: qml-mode.elc + +README.md: make-readme-markdown.el + emacs --script $< $@ 2>/dev/null +make-readme-markdown.el: + wget -q -O $@ https://raw.github.com/mgalgs/make-readme-markdown/master/make-readme-markdown.el +.INTERMEDIATE: make-readme-markdown.el + +clean: + $(RM) *.elc + +%.elc: %.el + $(BATCH) --eval '(byte-compile-file "$<")' + + +.PHONY: check clean README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..8ab09cf --- /dev/null +++ b/README.md @@ -0,0 +1,59 @@ +## qml-mode.el +*Major mode for editing QT Declarative (QML) code.* + +--- +[![License GPLv2](https://img.shields.io/badge/license-GPL_v2-green.svg)](http://www.gnu.org/licenses/gpl-2.0.html) +[![MELPA](http://melpa.org/packages/qml-mode-badge.svg)](http://melpa.org/#/qml-mode) +[![MELPA Stable](http://stable.melpa.org/packages/qml-mode-badge.svg)](http://stable.melpa.org/#/qml-mode) + + +qml-mode is major-mode for editing Qt Declarative (QML) code. + + +### Installation + + +If you have `melpa` and `emacs24` installed, simply type: + + M-x package-install qml-mode + +Add following lines to your init file: + + (autoload 'qml-mode "qml-mode" "Editing Qt Declarative." t) + (add-to-list 'auto-mode-alist '("\\.qml$" . qml-mode)) + +### 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. + +0.2 + + * rewrite based on generic-mode. + +0.1 + + * first version fork from cataska/qml-mode. + +### Function Documentation + + +#### `(qml-beginning-of-defun)` + +Value of ‘beginning-of-defun-function’ for ‘qml-mode’. + +#### `(qml-end-of-defun)` + +Value of ‘end-of-defun-function’ for ‘qml-mode’. + +----- +
+Markdown README file generated by +make-readme-markdown.el +
diff --git a/qml-mode.el b/qml-mode.el new file mode 100644 index 0000000..1af5c6a --- /dev/null +++ b/qml-mode.el @@ -0,0 +1,281 @@ +;;; qml-mode.el --- Major mode for editing QT Declarative (QML) code. + +;; 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.4 +;; Keywords: qml, qt, qt declarative + +;; This file is NOT part of GNU Emacs. + +;; This program is free software; you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 2, or (at your option) +;; any later version. +;; +;; This program is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. +;; +;; You should have received a copy of the GNU General Public License +;; along with this program; if not, write to the Free Software +;; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +;;; Commentary: + +;; +;; qml-mode is major-mode for editing Qt Declarative (QML) code. +;; + +;;; Installation: + +;; If you have `melpa` and `emacs24` installed, simply type: +;; +;; M-x package-install qml-mode +;; +;; Add following lines to your init file: +;; +;; (autoload 'qml-mode "qml-mode" "Editing Qt Declarative." t) +;; (add-to-list 'auto-mode-alist '("\\.qml$" . qml-mode)) + +;;; 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. +;; +;; 0.2 +;; +;; * rewrite based on generic-mode. +;; +;; 0.1 +;; +;; * first version fork from cataska/qml-mode. + +;;; Code: +(require 'js) ; based on js-mode +(require 'font-lock) + +;;; User Customization + +(defgroup qml nil + "Customization variables for QML mode." + :tag "QML" + :group 'languages) + +;;; Functions + +(defun qml--list-to-string (list) + "Combine a list to string." + (concat "\\(" (mapconcat 'identity list "\\|") "\\)")) + +(defun qml-beginning-of-defun () + "Value of `beginning-of-defun-function' for `qml-mode'." + (interactive) + (re-search-backward "\{")) + +(defun qml-end-of-defun () + "Value of `end-of-defun-function' for `qml-mode'." + (interactive) + (re-search-forward "\}")) + +;;; KeyMap + +(defvar qml-mode-map + (let ((keymap (make-sparse-keymap))) + (define-key keymap (kbd "C-M-a") 'qml-beginning-of-defun) + (define-key keymap (kbd "C-M-e") 'qml-end-of-defun) + keymap) + "Keymap for `qml-mode'.") + +;;; Syntax table and parsing + +(defconst qml--class-re + (js--regexp-opt-symbol + '("State" "PropertyChanges" "StateGroup" "ParentChange" + "StateChangeScript" "AnchorChanges" "PropertyAnimation" "NumberAnimation" + "ColorAnimation" "RotationAnimation" "SequentialAnimation" "ParallelAnimation" + "PauseAnimation" "ParentAnimation" "AnchorAnimation" "SmoothedAnimation" + "PropertyAction" "ScriptAction" "Transition" "SpringFollow" + "Behavior" "Binding" "ListModel" "ListElement" + "VisualItemModel" "VisualDataModel" "Package" "XmlListModel" + "XmlRole" "Connections" "Component" "Timer" + "QtObject" "WorkerScript" "Item" "Rectangle" + "Image" "BorderImage" "Text" "TextInput" + "TextEdit" "MouseArea" "FocusScope" "Flickable" + "Flipable" "GestureArea" "Loader" "Repeater" + "SystemPalette" "LayoutItem" "Scale" "Rotation" + "Translate" "ViewsPositionersMediaEffects" "ListView" "GridView" + "PathView" "Path" "PathLine" "PathQuad" + "PathCubic" "PathAttribute" "PathPercent" "WebView" + "Column" "Row" "Grid" "Flow" + "SoundEffect" "Audio" "Video" "Particles" + "ParticleMotionLinear" "ParticleMotionGravity" "ParticleMotionWander")) + "Regexp matching any QML class") + +(defconst qml--type-re + (js--regexp-opt-symbol + '("import" "signal" "Qt" "parent")) + "Regular expression matching any predefined type in QML.") + +(defconst qml--property + '("bool" "double" "real" "int" + "string" "url" "color" "date" + "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_]*\\)")) + +(defconst qml--constants-re + (js--regexp-opt-symbol + '("NoButton" "LeftButton" "RightButton" "MidButton" + "MiddleButton" + "Horizontal" "Vertical" + "AlignLeft" "AlignRight" "AlignHCenter" "AlignTop" + "AlignBottom" "AlignVCenter" "AlignCenter" + "Easing" "Linear" "InQuad" "OutQuad" + "InOutQuad" "OutInQuad" "InCubic" "OutCubic" + "InOutCubic" "OutInCubic" "InQuart" "OutQuart" + "InOutQuart" "OutInQuart" "InQuint" "InQuint" + "OutQuint" "InOutQuint" "OutInQuint" "InSine" + "OutSine" "InExpo" "OutExpo" "InOutExpo" + "OutInExpo" "InCirc" "OutCirc" "InOutCirc" + "OutInCirc" "InElastic" "OutElastic" "InOutElastic" + "OutInElastic" "InBack" "OutBack" "InOutBack" + "OutInBack" "InBounce" "OutBounce" "InOutBounce" + "OutInBounce"))) + +(defconst qml--font-lock-keywords-1 + `( ;; Keywords + (,qml--class-re (0 'font-lock-keyword-face)) + (,js--keyword-re (0 'font-lock-keyword-face)) + ;; Types + (,qml--type-re (1 'font-lock-type-face)) + (,js--basic-type-re (1 'font-lock-type-face)) + ;; Constant + (,qml--constants-re (0 font-lock-constant-face)) + (,js--constant-re (0 font-lock-constant-face)) + ("\\ Date: Tue, 23 May 2017 07:22:53 -0300 Subject: Remove badge icons from README file This patch removes badges icons from README file. These icons are intended rather for developers and are loaded from several external web sites. Gbp-Pq: Name 0001-fix-documentation.diff --- README.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/README.md b/README.md index 8ab09cf..ec34067 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,6 @@ ## qml-mode.el *Major mode for editing QT Declarative (QML) code.* ---- -[![License GPLv2](https://img.shields.io/badge/license-GPL_v2-green.svg)](http://www.gnu.org/licenses/gpl-2.0.html) -[![MELPA](http://melpa.org/packages/qml-mode-badge.svg)](http://melpa.org/#/qml-mode) -[![MELPA Stable](http://stable.melpa.org/packages/qml-mode-badge.svg)](http://stable.melpa.org/#/qml-mode) - - qml-mode is major-mode for editing Qt Declarative (QML) code. -- cgit v1.2.3 From 0fe2c14ced7c16d6a75e97cb08331f47bba260da Mon Sep 17 00:00:00 2001 From: Lev Lamberov Date: Sat, 2 Jun 2018 21:21:07 -0300 Subject: Remove badge icons from README file This patch removes badges icons from README file. These icons are intended rather for developers and are loaded from several external web sites. Gbp-Pq: Name 0001-fix-documentation.diff --- README.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/README.md b/README.md index 8ab09cf..ec34067 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,6 @@ ## qml-mode.el *Major mode for editing QT Declarative (QML) code.* ---- -[![License GPLv2](https://img.shields.io/badge/license-GPL_v2-green.svg)](http://www.gnu.org/licenses/gpl-2.0.html) -[![MELPA](http://melpa.org/packages/qml-mode-badge.svg)](http://melpa.org/#/qml-mode) -[![MELPA Stable](http://stable.melpa.org/packages/qml-mode-badge.svg)](http://stable.melpa.org/#/qml-mode) - - qml-mode is major-mode for editing Qt Declarative (QML) code. -- cgit v1.2.3 From 95bc2fc960574051d2ad20bf012ae653442f805b Mon Sep 17 00:00:00 2001 From: Lev Lamberov Date: Mon, 26 Aug 2019 13:19:30 -0300 Subject: Remove badge icons from README file This patch removes badges icons from README file. These icons are intended rather for developers and are loaded from several external web sites. Gbp-Pq: Name 0001-fix-documentation.diff --- README.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/README.md b/README.md index 8ab09cf..ec34067 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,6 @@ ## qml-mode.el *Major mode for editing QT Declarative (QML) code.* ---- -[![License GPLv2](https://img.shields.io/badge/license-GPL_v2-green.svg)](http://www.gnu.org/licenses/gpl-2.0.html) -[![MELPA](http://melpa.org/packages/qml-mode-badge.svg)](http://melpa.org/#/qml-mode) -[![MELPA Stable](http://stable.melpa.org/packages/qml-mode-badge.svg)](http://stable.melpa.org/#/qml-mode) - - qml-mode is major-mode for editing Qt Declarative (QML) code. -- cgit v1.2.3