summaryrefslogtreecommitdiff
path: root/.emacs.d/lisp/yaml-mode.el
diff options
context:
space:
mode:
authorSimeon Simeonov2016-02-17 07:39:51 +0100
committerSimeon Simeonov2016-02-17 07:39:51 +0100
commit481decd28b7940d1dae11fd0ff2dc06143c46ee8 (patch)
treefca07ee06cf69f62776d74cc03087f8c71401ad5 /.emacs.d/lisp/yaml-mode.el
parent905ddda312c1535909c64bb261d4cf2a3edcb8ae (diff)
Add java-mode snippets. Upgrade yasnippet and yaml-mode
Diffstat (limited to '.emacs.d/lisp/yaml-mode.el')
-rw-r--r--.emacs.d/lisp/yaml-mode.el15
1 files changed, 8 insertions, 7 deletions
diff --git a/.emacs.d/lisp/yaml-mode.el b/.emacs.d/lisp/yaml-mode.el
index 15f3872..b932576 100644
--- a/.emacs.d/lisp/yaml-mode.el
+++ b/.emacs.d/lisp/yaml-mode.el
@@ -4,6 +4,8 @@
4 4
5;; Author: Yoshiki Kurihara <clouder@gmail.com> 5;; Author: Yoshiki Kurihara <clouder@gmail.com>
6;; Marshall T. Vandegrift <llasram@gmail.com> 6;; Marshall T. Vandegrift <llasram@gmail.com>
7;; Maintainer: Vasilij Schneidermann <v.schneidermann@gmail.com>
8;; Package-Requires: ((emacs "24.1"))
7;; Keywords: data yaml 9;; Keywords: data yaml
8;; Version: 0.0.12 10;; Version: 0.0.12
9 11
@@ -19,10 +21,9 @@
19;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20;; GNU General Public License for more details. 22;; GNU General Public License for more details.
21 23
22;; You should have received a copy of the GNU General Public License 24;; You should have received a copy of the GNU General Public License along
23;; along with GNU Emacs; see the file COPYING. If not, write to 25;; with this program; if not, write to the Free Software Foundation, Inc.,
24;; the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 26;; 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25;; Boston, MA 02111-1307, USA.
26 27
27;;; Commentary: 28;;; Commentary:
28 29
@@ -144,7 +145,7 @@ that key is pressed to begin a block literal."
144 "Regexp matching a single YAML hash key.") 145 "Regexp matching a single YAML hash key.")
145 146
146(defconst yaml-scalar-context-re 147(defconst yaml-scalar-context-re
147 (concat "\\(?:^\\(?:--- \\)?\\|{\\|\\(?:[-,] +\\)+\\) *" 148 (concat "\\(?:^\\(?:--- \\)?\\|{\\|\\(?: *[-,] +\\)+\\) *"
148 "\\(?:" yaml-bare-scalar-re " *: \\)?") 149 "\\(?:" yaml-bare-scalar-re " *: \\)?")
149 "Regexp indicating the begininng of a scalar context.") 150 "Regexp indicating the begininng of a scalar context.")
150 151
@@ -162,7 +163,7 @@ that key is pressed to begin a block literal."
162 "Regexp matching a line beginning a YAML block literal.") 163 "Regexp matching a line beginning a YAML block literal.")
163 164
164(defconst yaml-nested-sequence-re 165(defconst yaml-nested-sequence-re
165 (concat "^\\(?: *- +\\)+" 166 (concat "^\\(?:\\(?: *- +\\)+\\|\\(:? *-$\\)\\)"
166 "\\(?:" yaml-bare-scalar-re " *:\\(?: +.*\\)?\\)?$") 167 "\\(?:" yaml-bare-scalar-re " *:\\(?: +.*\\)?\\)?$")
167 "Regexp matching a line containing one or more nested YAML sequences.") 168 "Regexp matching a line containing one or more nested YAML sequences.")
168 169
@@ -213,7 +214,7 @@ that key is pressed to begin a block literal."
213 (modify-syntax-entry ?\] ")[" yaml-mode-syntax-table)) 214 (modify-syntax-entry ?\] ")[" yaml-mode-syntax-table))
214 215
215;;;###autoload 216;;;###autoload
216(define-derived-mode yaml-mode fundamental-mode "YAML" 217(define-derived-mode yaml-mode text-mode "YAML"
217 "Simple mode to edit YAML. 218 "Simple mode to edit YAML.
218 219
219\\{yaml-mode-map}" 220\\{yaml-mode-map}"