Commit Graph

58 Commits

Author SHA1 Message Date
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
Eric NOULARD 4d253d1a9d Enhance bash completion file for cmake and ctest
- filter out cmake/ctest version line
- provide -R as -E completion with ctest
2012-01-03 18:12:56 +01:00
Matthias Kretz ce013215d2 Inline help in vim with vertical split.
Added a small script to open a vertical split window with the output of
cmake --help-command for the word under the cursor.
2010-12-13 13:25:27 -05:00
Eric NOULARD 1715c96b3c Improve cmake-completion (install doc, ctest -R completion) 2010-08-13 17:11:42 +02:00
Eric NOULARD e41f813d12 Proposal for bash-completion support file 2010-08-01 14:31:32 +02: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
Brad King 33e865c041 ENH: Add unset() command.
This introduces the unset() command to make it easy to unset CMake
variables, environment variables, and CMake cache variables.  Previously
it was not even possible to unset ENV or CACHE variables (as in
completely remove them).  Changes based on patch from Philip Lowman.
See issue #7507.
2008-08-25 10:31:29 -04:00
Sebastien Barre 5d2b90097d ENH: add simple function to convert all CMake commands to lowercase 2008-03-11 10:54:40 -04:00
Karthik Krishnan 25e00a332b ENH: ~/CMake/src/Docs
* Additions for cmake-command highligting.
* Additions for operator-highlighting
2008-01-16 11:53:53 -05:00
Alexander Neundorf 903eaa7f0e BUG: fix vim highlighting, see #6238
Alex
2008-01-14 19:20:42 -05:00
Brad King ec05369d04 ENH: Enable indentation of FUNCTION/ENDFUNCTION blocks in emacs. 2008-01-02 17:32:58 -05:00
Alexander Neundorf d1f4fa6bb7 STYLE: apply patch from #6166, better cmake syntax highlighting in vim,
seems to fix the issues mentioned in the bug report and the rest also still
seems to be ok

Alex
2007-12-17 16:15:26 -05:00
Brad King f75958b8cb ENH: Adding elseif to VIM syntax and indentation files. See bug #3781. 2006-09-23 17:09:08 -04:00
Brad King 1c429da781 ENH: Adding elseif indentation. See bug#3781. 2006-09-23 16:32:34 -04:00
Ken Martin 9336a3f876 ENH: remove old files 2006-07-28 14:20:07 -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
Andy Cedilnik 9c754bfc44 BUG: Fix typo 2006-04-21 16:33:35 -04:00
Andy Cedilnik e3d7dbd2f8 ENH: Add While support 2006-04-21 07:17:03 -04:00
Andy Cedilnik c2aac58e21 STYLE: Add missing command 2006-04-20 10:20:53 -04:00
Andy Cedilnik 0ec43f7abd ENH: Cleanup header and make license compatible with VIM 2006-04-18 10:32:28 -04:00
Andy Cedilnik 32cd4a8c58 ENH: Cleanup, make case insensitive, remove macro since it does not work anyway 2006-04-16 13:49:25 -04:00
Andy Cedilnik 58641b2ceb ENH: Unify the comment 2006-04-12 21:24:15 -04:00
Andy Cedilnik 5171493586 ENH: More system variables, more operators, more commands, fix some string issues and some cmake arguments issues 2006-04-12 21:20:38 -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 26c53fe14c ENH: modified GET_TARGET_PROPERTIES to work with all targets 2005-06-20 14:00:48 -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
Andy Cedilnik 42731475dc Initial import of VIM syntax highlighting file 2003-07-07 13:36:04 -04: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