Charlie Gordon
5b85c88800
added language coloring for Neko and NekoML
...
- added language coloring for Neko and NekoML
- improved Makefile parsing and coloring
2015-04-05 15:10:01 +00:00
Charlie Gordon
031bfed715
add match_shell_handler function and mode field
...
* add function match_shell_handler to probe shell #! dispatcher line
* add mode field shell_handlers for generic syntax probe function
* add memfind to find keywords from buf+length
* add shell handlers for ruby, perl and python flavors, lua, haskell, ocaml
* remove perl_mode_probe
* add C++ keywords, include namespace in identifiers
* add cpp_mode_probe to detect C++ header files
* add shell handler for tcc scripts
* remove calc_mode_probe
* modify scoring between shell-script-mode and simpler sharp-mode
2014-06-08 10:56:58 +00:00
Charlie Gordon
75ada2a129
add more colorizers
...
* add Fortran mode (.f f77 f90 extensions)
* add Ada mode (.ada .adb .ads extensions)
* add mode for Jasspa EMF macro files (.emf extension)
* factorize code
* add .reg extension for ini mode (registry files)
* add .p extension for pascal
* add .cls extension for visual basic
* use mode fields for keywords and types
2014-06-04 08:32:17 +00:00
Charlie Gordon
bbee33c57b
improve key binding handling
...
* add fallback mode to share key bindings
* simplify key binding lookup method
2014-05-30 22:57:34 +00:00
Charlie Gordon
5cbe28867e
improve support for sql files and databases
...
* dump sqlite databases and syntax colorize output
* add keyword and type support in sql mode
2014-05-30 22:12:30 +00:00
Charlie Gordon
2e5cc16713
improve syntax colorizing modes consistency
...
* create separate modes for all syntax colorizers
* add colorizing_flags to mode structure for code sharing
* pass ModeDef struct pointer to colorizing function
* remove obsolete window fields
2014-05-30 17:18:12 +00:00
Charlie Gordon
b8004d7072
simplify mode definitions
...
* assume text mode primitives for MODEF_SYNTAX modes
* initialize mode structures inline instead of cloning text_mode
2014-05-29 18:29:14 +00:00
Charlie Gordon
53168697f7
improve asm and pascal colorizers
...
* simplified code for x86 asm
* add keywords and types for pascal
* remove is_lc_keyword, use local symbol buffers
2014-05-27 23:43:59 +00:00
Charlie Gordon
ebc8f89a82
prevent strict warnings
2014-05-27 22:59:48 +00:00
Charlie Gordon
851321452f
use generic mode_probe function where possible
2014-05-27 15:50:47 +00:00
Charlie Gordon
f527a58e18
add mode flags to specify different types of modes
...
* add mode_flags as extra argument to qe_register_mode
* change all mode registration calls accordingly
2014-05-27 12:05:52 +00:00
Charlie Gordon
ba22305321
remove useless init_mode functions and empty command lists
2014-05-26 20:29:09 +00:00
Charlie Gordon
ad82a883a1
msg1
2014-05-18 11:01:00 +00:00
Charlie Gordon
46c2fdefca
added sharp-mode for txt files with # end of line comments
2014-05-13 08:49:17 +00:00
Charlie Gordon
01144fd1af
add coloring mode for Julia language
2014-04-24 22:06:11 +00:00
Charlie Gordon
7c400cb0ce
make val an OCaml keyword instead of a type
2014-04-15 08:04:19 +00:00
Charlie Gordon
7942849bf8
add colorizing mode for ocaml
2014-04-13 14:47:14 +00:00
Charlie Gordon
996c65fa9f
add mode for vim script files
2014-04-10 08:01:50 +00:00
Charlie Gordon
4dd1b87177
recognize argument-less ruby functions with procs
2014-04-07 20:51:47 +00:00
Charlie Gordon
2ef06f9131
pass QEColorizeContext to ColorizeFunc callbacks
...
* pass state and state_only as members of QEColorizeContext
* simplify ColorizeFunc, make them more consistent
* use offsets instead of pointers to prepare for further API changes
2014-04-05 15:49:14 +00:00
Charlie Gordon
b1ab7efb54
improve colorizers
...
* use mode specific namespace for colorizer states and styles
* use enum values instead of preprocessor macros for states and styles
2014-04-02 12:58:12 +00:00
Charlie Gordon
b2c2c9374e
improve c-mode, add mode_flags to handle language mode flavors
...
* add mode_flags and mode_name in EditState
* pass mode_flags to ColorizeFuncs
* define several CLANG mode flavors for C, C++, Javascript, Java, etc.
* add flavor specific keyword lists for c-mode
* add regex support in c-mode for Javascript flavor
2014-03-24 10:58:09 +00:00
Charlie Gordon
b7459252e9
fix uninitialized variables
2014-03-16 00:34:29 +00:00
Charlie Gordon
6de5bc9710
fix bug in asm keyword detection
2014-03-15 13:45:17 +00:00
Charlie Gordon
0052071fb2
use SET_COLOR macros in various colorizers
...
* use macro to prepare for coloring API change
* done for lisp-mode, markdown-mode, perl-mode, shell-script-mode,
org-mode, makefile-mode
2014-03-10 22:11:24 +00:00
Charlie Gordon
9ecb6da63d
improve ruby mode
...
* use '\"' everywhere for consistency.
* improve HERE document syntax support, including <<"XXX" and <<'XXX'
2014-03-10 22:07:35 +00:00
Charlie Gordon
fcea31f526
improve python mode, add ruby mode
...
* add raw string parsing for python-mode
* add Ruby coloring mode
2014-03-10 02:03:39 +00:00
Charlie Gordon
562d1e34b1
add python-mode
...
* add support for python coloring.
2014-03-07 17:34:24 +00:00
Charlie Gordon
0b998403c3
add haskell-mode
...
* detect haskell files on extension: *.hs
* fix small things
* add qe_findchar(str, c) to search code point in ascii string
2014-03-07 10:25:59 +00:00
Charlie Gordon
b8d7ef7c43
add lua language colorizer
...
* detect and colorize lua scripts
* prevent ini-mode detection on [[ at start of file
2014-03-07 02:24:14 +00:00
Charlie Gordon
2f2df43fbb
Add extra language modes
...
* add coloring mode for assembly, basic, pascal, ini, postscript and sql
2014-03-02 14:49:44 +00:00