Brad King
7da35e6550
cmake-mode.el: Indent after multiline argument ( #12908 )
...
After a multiline argument ending in a non-empty line e.g.
if(TEST)
set(VAR "
...")
unset(VAR)
endif()
we previously failed to indent following lines like the "unset". Use
cmake-line-starts-inside-string to keep walking back through multiline
arguments until we find an indented line.
Suggested-by: Christopher Sean Morrison <brlcad@mac.com>
2012-01-23 13:59:27 -05:00
Bill Hoffman
3b34523bc0
Add cmake-help-command function.
2009-09-30 09:49:52 -04:00
Brad King
96afb12087
Convert CMake to OSI-approved BSD License
...
This converts the CMake license to a pure 3-clause OSI-approved BSD
License. We drop the previous license clause requiring modified
versions to be plainly marked. We also update the CMake copyright to
cover the full development time range.
2009-09-28 11:43:28 -04:00
Brad King
8597f01acd
BUG: Fix cmake-mode.el indentation cursor motion
...
This makes cursor motion in the indent function consistent with emacs
conventions. Patch from Mike Wittman. See issue #8625 .
2009-02-26 13:28:01 -05:00
Sebastien Barre
5d2b90097d
ENH: add simple function to convert all CMake commands to lowercase
2008-03-11 10:54:40 -04:00
Brad King
ec05369d04
ENH: Enable indentation of FUNCTION/ENDFUNCTION blocks in emacs.
2008-01-02 17:32:58 -05:00
Brad King
1c429da781
ENH: Adding elseif indentation. See bug#3781.
2006-09-23 16:32:34 -04:00
Brad King
92ea0a077c
BUG: In example .emacs code use \' for end-of-string instead of $ for end-of-line.
2006-04-26 15:54:58 -04:00
Brad King
c8e355b6a1
BUG: Mode should only be used if CMakeLists.txt is at the end of the buffer name.
2006-04-26 14:28:56 -04:00
Brad King
0a9d238def
BUG: Tabs around a function name are allowed.
2006-04-26 14:22:43 -04:00
Brad King
7b5c4abc74
ENH: Using suggestion from Stuart Herring to avoid needing a list of command names in the highlighting table.
2006-04-26 13:04:31 -04:00
Brad King
2172a64ff1
ENH: Cleaned-up mode in preparation for inclusion in emacs upstream.
2006-04-25 11:52:48 -04:00
Brad King
8de6e9557b
ENH: Added highlighting for LIST command.
2006-02-10 14:15:58 -05:00
Brad King
b8a33fb424
ENH: Added INSTALL command as a placeholder for a future generic install specification interface. Currently it supports only a SCRIPT option specifying a script to run during the install stage.
2006-02-10 13:54:36 -05:00
Brad King
44f96ff101
ENH: Adding new EXECUTE_PROCESS command that interfaces to KWSys Process Execution.
2006-02-03 16:55:38 -05:00
Ken Martin
c09a1fa799
ENH: missing get_directory_property command
2005-09-13 10:33:06 -04:00
Ken Martin
8ea0a1a237
ENH: added while command
2005-06-30 13:39:10 -04:00
Ken Martin
ff99d6885f
ENH: added while command
2005-06-30 13:27:18 -04:00
Ken Martin
dc05f1585b
ENH: updated emacs mode to include lowercase commands and missing command ENDMACRO
2005-06-20 11:47:57 -04:00
Brad King
894fa6a8c7
ENH: Experimenting with auto-dated copyright.
2005-06-08 09:59:59 -04:00
Ken Martin
2ab429b9bf
ENH: updated commands
2005-06-02 15:14:30 -04:00
Ken Martin
a4ae84c100
ENH: updated to remove ABSTRACT_FILES and add ADD_SUBDIRECTORY
2005-06-02 14:21:46 -04:00
Brad King
419df21c06
BUG: Only count block open tokens if they are followed by an open paren.
2004-08-26 18:00:57 -04:00
Brad King
97391045bd
BUG: Fixed parsing of unquoted arguments to allow double-quotes within the argument.
2004-06-18 10:54:45 -04:00
Brad King
ece9ae97e2
BUG: Fixed identification of ( and ) tokens to avoid finding them in string literals.
2004-02-19 10:28:57 -05:00
Brad King
f791e1a80b
ENH: New indentation implementation to support multi-line strings.
2003-12-05 10:45:16 -05:00
Brad King
458fed969f
STYLE: Removed trailing whitespace.
2003-12-04 14:34:23 -05:00
Brad King
965b44cdd5
ENH: Added comment-region support.
2003-06-29 20:20:14 -04:00
Bill Hoffman
bf59bd2706
BUG: fix highlight for comments in multiple buffers
2003-06-20 14:10:21 -04:00
Bill Hoffman
caeada7f27
add a comment
2003-06-19 16:23:42 -04:00
Brad King
06cd152da2
Added copyright.
2003-06-19 15:05:07 -04:00
Brad King
f5c2801931
Minor tweaks for anal cases of indentation.
2003-06-19 14:30:41 -04:00
Brad King
218efecd89
BUG: Don't open a block if a command starts with IF in its name.
2003-06-19 14:17:43 -04:00
Ken Martin
1c20252908
fix to use function-name
2003-06-19 13:38:42 -04:00
Brad King
0ee768c914
Fixed slow regex for indentation.
2003-06-19 13:23:22 -04:00
Brad King
a7cde5c005
ENH: Wrote more robust regular expressions for indenting.
2003-06-19 11:11:54 -04:00
Ken Martin
cc3b1932be
emacs mode
2003-06-19 11:07:41 -04:00