summaryrefslogtreecommitdiffstats
path: root/ext/emacs
Commit message (Collapse)AuthorAgeFilesLines
* Removed extra whitespace from end of linesIan Taylor2009-06-061-10/+10
|
* Fixed #1840 - Bug fixes and improvements for Emacs puppet-mode.elJames Turnbull2008-12-271-31/+32
|
* Fixed #1767 - Minor fix to emacs modeJames Turnbull2008-11-241-1/+1
|
* Further Emacs puppet-mode fixesRuss Allbery2008-05-301-15/+15
| | | | | | | | | | | | More correctly handle indentation of lines enclosed in [] when the contents themselves contain [], such as arrays of object references for requires. Exclude newlines from more of the parsing regexes for more accurate results. Fontify references to objects even if they're not at the start of a line.
* Fix Emacs mode indentation of multiple nested blocksRuss Allbery2008-05-121-7/+13
| | | | | | | | | | | | Indentation of multiple nested blocks was broken; the closing braces of all the outer blocks were put into column 0 because finding the block indentation failed. Do normal indentation if finding a block indentation fails, but more importantly, be smarter about searching backwards to find the beginning of the current block, taking balanced braces into account. There is probably some less-ugly and more Emacs-native way of doing this.
* Enhancements to syntax highlighting and indentation for EmacsRuss Allbery2008-05-121-125/+159
| | | | | | | | | | | | | | | | | | | | | | | | More correctly handle multiple resources in a block, such as: type { "name": attr => foo, oattr => bar; "other": attr => baz; } Handle continued arguments in parentheses, such as define or realize arguments. Try to be a bit more robust about indenting in general. Add the remaining Puppet language keywords (I think) and improve the handling of type references at the top level. Remove the hack for continued include lines and fix it properly. Remove more non-Puppet code left over from the mode this one was based on. Use a more straightforward method of setting up the font-lock keywords and do it the same way for both XEmacs and Emacs since I think they can both handle the current method (and other modes agree).
* Use our own count-matches for Emacs 21 compatibilityRuss Allbery2008-05-121-1/+10
| | | | | | Replace count-matches with a puppet-count-matches function that does the same as the Emacs 22 count-matches. The Emacs 21 count-matches is different and not useful for our purposes.
* Additional fix for emacs syntax for ticket #1160James Turnbull2008-04-041-5/+5
|
* Revert "Additional fix to emacs for ticket #1160"James Turnbull2008-04-041-5/+5
| | | | This reverts commit bb65226e54d5e476581118e7c2c5e42275a6b290.
* Additional fix to emacs for ticket #1160James Turnbull2008-04-041-5/+5
|
* Committed patch from #1160James Turnbull2008-04-031-76/+89
|
* * puppet/ext/emacs/puppet-mode.el (puppet-indent-line): Clean up the code ↵Karl Fogel2008-03-201-8/+8
| | | | somewhat after commit 738d275f41f3eaf015800021dd2dfe6c42a1ae79, as promised.
* * puppet/ext/emacs/puppet-mode.el (puppet-indent-line): Be more ↵Karl Fogel2008-03-201-0/+3
| | | | | | | sophisticated about what we do at the beginning of the buffer, so that the first expression after an block-opening statement that happens to begin at the beginning of the buffer gets indented correctly. This may need some cleanup, but I wanted to get the correct behavior committed first. Reported by: Micah Anderson (Who again supplied the reproduction case.)
* Fix bug mentioned in commit f814e23eab140ad01df4a4a3b187fcbf20da02be:Karl Fogel2008-03-201-2/+2
| | | | | | | | | * puppet/ext/emacs/puppet-mode.el (puppet-indent-line): When iterating backwards, test for beginning-of-buffer first, to avoid an infinite loop. Reported by: Micah Anderson (He also supplied a clear reproduction recipe.)
* * ext/emacs/puppet-mode.el (puppet-comment-line-p, puppet-in-array): New ↵Karl Fogel2008-03-201-29/+88
| | | | | | | | | | | helper functions. (puppet-indent-line): Rewrite to handle three more situations: indent elements in an array, indent single-line blocks, and ignore previous comment content when indenting non-comment lines. Suggested by: Micah Anderson (He also provided the test data.) Notes: Michah points out that this change may have introduced an infinite loop (he can cause Emacs to hang now). Will investigate and fix in a separate change.
* * ext/emacs/puppet-mode.el: Untabify, in preparation for substantive changes.Karl Fogel2008-03-201-61/+61
|
* Minor cleanup, leave cursor at beginning of indented line, not its endlutter2007-01-061-19/+19
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2065 980ebf18-57e1-0310-9a29-db15c13687c0
* Add indentation written by Mario Martellilutter2007-01-061-1/+46
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2064 980ebf18-57e1-0310-9a29-db15c13687c0
* Simple emacs mode for editing manifests; only does pretty colors right nowlutter2006-02-072-0/+195
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@874 980ebf18-57e1-0310-9a29-db15c13687c0