Maxime Coste
20f744bd53
Remove useless try blocks in comment functions
...
We should not have exceptions raised there, if there is, do not
ignore them
2015-09-22 19:09:54 +01:00
Maxime Coste
6c73d6e794
Merge remote-tracking branch 'lenormf/rc/c-family.kak-comment'
2015-09-22 19:06:26 +01:00
Maxime Coste
7750df787a
Try to manually detect if .h files are c or cpp
2015-09-22 19:01:15 +01:00
Frank LENORMAND
c7f568f696
Clean up and improve the commenting functions
...
Simplifies the selection commenting function, add proper draft options
to the exec statements, and make the uncommenting bit keep the selection.
Add a function that comments the current line with "//", uncommenting is
supported as well.
2015-09-22 14:32:14 +03:00
Maxime Coste
70fdd068dc
c-family.kak: add plain c highlighter and detection
...
Give priority to extension over detected mimetype, as
file often takes c++ files to be c files.
2015-09-21 23:36:20 +01:00
Maxime Coste
3b1d15bf8b
Merge remote-tracking branch 'lenormf/rc/c-family.kak-comment'
2015-09-21 13:40:37 +01:00
Frank LENORMAND
ac98699cf9
Add a comment-selection function
2015-08-11 14:04:24 +03:00
Frank LENORMAND
0000dd4705
Add the double type to the list of highlighted types
2015-08-11 08:16:04 +03:00
Frank LENORMAND
6d70c37bd3
Add support for hexadecimal numbers to the C family languages
2015-07-20 17:31:33 +03:00
Maxime Coste
1bbb4ce29c
Add some missing operators to C++ highlighting
2015-04-30 13:45:48 +01:00
Maxime Coste
dd9533e625
Small tweak in c-family-alternative-file error handling
2015-04-21 13:21:24 +01:00
Maxime Coste
abe3856d29
c-family.kak: Just remove trailing indent on InsertEnd
2014-12-18 19:33:57 +00:00
Maxime Coste
8d7ddfdf8b
Only remove trailing whitespaces on InsertEnd when last insert was auto indent
...
Fixes #242
2014-12-17 13:58:05 +00:00
Maxime Coste
51b88bef10
small tweak in objective c highlight
2014-12-03 19:46:55 +00:00
Jimmy Thrasher
eddad89915
Support @"" style strings for Obj-C syntax highlighting
2014-12-02 11:44:02 -05:00
Jimmy Thrasher
e540dc7f9e
Add mime-type check for Obj-C in case the user's file cmd supports it
2014-12-02 11:15:53 -05:00
Jimmy Thrasher
d73fe2cc6d
Add some missing obj-c highlight patterns to the new c-family.kak
2014-12-02 09:39:57 -05:00
Maxime Coste
798d4c3a1e
use printf rather than echo in c-family.kak
...
According to POSIX, echo with a backspace in any arg is undefined
behaviour...
2014-12-01 19:33:15 +00:00
Maxime Coste
6c45b1d1e2
Try to unify objective c and cpp in a c-family.kak file
2014-12-01 13:52:24 +00:00