Mo Zhou
33448c830b
Misc typo fixes by https://github.com/codespell-project/codespell/
2018-09-06 04:09:48 +00:00
Fanael Linithien
f5f4b3ba7c
Remove unneeded save-excursion.
...
syntax-propertize-function is allowed to move the point and mark.
2014-11-24 19:09:33 +01:00
Fanael Linithien
40a76d8cd5
Use lexical-binding.
...
There's no reason not to use lexical-binding when supporting only
Emacs 24+. Its semantics are just that much saner.
2014-11-23 22:29:49 +01:00
Fanael Linithien
f15faca3c3
Add a Emacs 24 requirement.
...
Only Emacs >= 24 has prog-mode.
2014-11-23 22:26:54 +01:00
Fanael Linithien
11377a46d1
Correctly recognize a comment if the previous line is a comment ending in $.
2014-11-23 22:25:27 +01:00
Fanael Linithien
73f934e886
Avoid putting properties past the end of the buffer.
2014-11-23 22:25:27 +01:00
Fanael Linithien
14d161080c
Don't use dotted list syntax unless necessary.
2014-11-23 22:25:27 +01:00
Fanael Linithien
310532c0b0
Remove unnecessary regexp group.
2014-11-23 22:25:27 +01:00
Fanael Linithien
931db561cf
Correctly recognize comments.
2014-11-23 22:25:27 +01:00
Fanael Linithien
327c094596
Set up a proper syntax table for ninja-mode.
...
Since quotes are not meant to be treated as string delimiters,
the syntax table is the place to tell Emacs so.
This also means syntactic fontification can be reenabled and the
font-lock keyword entry for comments removed.
2014-11-23 22:25:27 +01:00
Fanael Linithien
c600a82589
Set comment-start buffer-locally, not globally.
2014-11-23 22:23:35 +01:00
Fanael Linithien
2f7f4ae945
Use quasi-quoting instead of list+cons.
2014-11-23 22:23:35 +01:00
Fanael Linithien
a13b647460
Reindent ninja-mode.el using Emacs.
...
Emacs knows best how to indent Emacs Lisp.
2014-11-23 22:23:30 +01:00
Fanael Linithien
6091cfefcd
Use double semicolon comments.
2014-11-23 22:23:28 +01:00
Fanael Linithien
77d5c3a67a
Don't leave lone closing parens.
2014-11-23 22:18:24 +01:00
Evan Martin
2ab60038b6
Merge pull request #772 from drbo/syntax_bugfix
...
Added highlighting in Emacs for ${...} variables
2014-11-23 12:14:02 -08:00
Evan Martin
62c10b9969
Merge pull request #813 from cdlm/emacs-mode-require-newline
...
Emacs mode: inherit from prog-mode
2014-11-18 09:44:38 -08:00
Nico Weber
2cfb99985d
emacs: Remove an empty line, wrap a comment.
2014-11-17 15:15:19 -08:00
Damien Pollet
fb9f17f48c
Emacs mode: inherit from prog-mode
...
`prog-mode` ensures a final newline when saving files, which is useful
since ninja fails otherwise.
See `require-final-newline` and `mode-require-final-newline`.
2014-09-16 14:28:46 +02:00
donkopotamus
781aa24ba5
Add highlighting of rule in build statements
...
Highlight the rule being used in a build statement. Also add `.` to acceptable characters in a rule name and relax whitespace matching before the name.
2014-06-27 12:26:37 +12:00
donkopotamus
583632513c
Update ninja-mode for emacs to handle hyphens in rule names
2014-06-26 16:34:35 +12:00
Demetri Obenour
4e0e6c58b4
Removed tab and added . in variable name regexp
2014-06-01 13:39:48 -04:00
Demetri Obenour
44a0d08a52
Added highlighting in Emacs for ${...} variables
2014-06-01 11:29:18 -04:00
Steve Purcell
2b9fefbdd4
ninja-mode: add autoload cookie for the mode itself
2014-01-22 12:01:16 +00:00
Evan Martin
8d42584c29
Merge branch 'fix-provide-form' of git://github.com/yasuyk/ninja
...
Conflicts:
misc/ninja-mode.el
2014-01-21 10:57:29 -08:00
Evan Martin
51c9220f53
Merge branch 'fix-warning' of git://github.com/yasuyk/ninja
...
Conflicts:
misc/ninja-mode.el
2014-01-21 10:56:43 -08:00
Yasuyuki Oka
9da5b0c862
emacs: Place provide form at end of file
...
Any errors in the code after "provide" will leave the feature
registered, so it should always be at the end.
2014-01-21 22:33:35 +09:00
Yasuyuki Oka
8596ba6081
emacs: Fix a warning
...
Fix a following byte-compile warning:
ninja-mode.el:18:7:Warning: assignment to free variable `ninja-keywords'
2014-01-21 22:29:41 +09:00
Yasuyuki Oka
e4dc39bdbf
emacs: ELPA compatibility
2014-01-21 22:19:19 +09:00
Robert Iannucci
53ba2ca746
Add missing default keyword
2012-12-13 23:21:02 -08:00
Robert Iannucci
16a7f86f0f
Add pool
2012-12-13 23:20:50 -08:00
Evan Martin
8066c2d1bb
emacs: hook up ninja-mode to extension
2012-04-28 09:06:55 -07:00
Humza
88fbad50ae
Improvements to ninja-mode
...
* provide ninja-mode feature
* highlight rule names
2011-11-13 11:30:10 -05:00
Evan Martin
91e0f9ff96
emacs: highlight variable expansions too
2011-05-22 10:28:09 -07:00
Evan Martin
d52238f212
add copyrights
2011-02-06 11:02:57 -08:00
Evan Martin
c1cb4f5ee8
fancier elisp, handle "include"
2011-01-22 19:05:26 -08:00
Evan Martin
3446e3407c
improved emacs mode
2011-01-08 15:42:29 -08:00
Evan Martin
42d237e784
move src into subdir
2010-12-04 16:09:50 -08:00