]> code.delx.au - gnu-emacs-elpa/commit
* dts-mode/dts-mode.el: Add new SMIE-based indentation
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 18 Aug 2015 15:28:12 +0000 (11:28 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 18 Aug 2015 15:28:12 +0000 (11:28 -0400)
commit383742704db2b559138d8a66226a05b905f5209b
tree29edc97868b9f8eaf371a8ae10ead69c1ae13a8d
parent312b3e863e0e5aef3484df831dda1ccc4152d3fd
* dts-mode/dts-mode.el: Add new SMIE-based indentation

Fit within 80 columns.
(dts-re-ident): Use :alpha: and :alnum:.
(dts-mode-syntax-table): Remove redundant entry for &.
Complete entries for < and >.  Change entry for _ since only letters
should have word syntax.
(dts-use-smie): New var.
(dts-grammar): New constant.
(dts-indent-rules): New function.
(dts-mode): Remove redundant :syntax-table.  Remove :group since that
group doesn't exist anyway.
Set syntax-propertize-function to recognize #include's <...> as a string.
Use dts-grammar depending on dts-use-smie.
(auto-mode-alist): Merge the two entries.
packages/dts-mode/dts-mode.el