Commit graph

61 commits

Author SHA1 Message Date
Charlie Gordon
e71273f3af syntax: improve tag display
- increase identifier buffer lengths
- fix some bugs in buffer property handling
2017-04-17 09:16:24 +00:00
Charlie Gordon
e08867b692 basic: reduce global variable clutter
- make more registered objects static
- document some non static global objects
- remove some global variables
2017-04-16 21:51:19 +00:00
Charlie Gordon
84547c6209 build: fix compile time warning
- fix some warnings on unused variables and variables potentially
  used before set
- force definition of va_copy() and atomic_get_and_set() for haiku
2017-04-15 09:39:02 +00:00
Charlie Gordon
f106d3dc66 extra-modes: fix potential out of bounds access 2017-04-11 07:27:14 +00:00
Charlie Gordon
073fbc3439 tags: fix some bugs, extend system
- pass target window to completion functions
- fix tag completion at find-tag prompt
- add tag support in python mode
- set tag offset to the actual word instead of start of line
2017-03-31 15:33:02 +00:00
Charlie Gordon
c5a3bb8ecb updated heading 2017-03-25 18:14:59 +00:00
Charlie Gordon
e479e31c1d modes: small improvements
- prevent ini_mode to match JSON files
- add ".Sql" extension for sql_mode
- add `protected`, `$this`, `as`, `null` and builtin functions as PHP keywords
2016-12-23 12:21:46 +00:00
Charlie Gordon
04ea9124ad update lua keywords 2016-11-26 11:12:27 +00:00
Charlie Gordon
92f31a2ce3 use new style parser for pascal colorizer 2016-07-12 07:50:19 +00:00
Charlie Gordon
9faeebcfdd build: fix warnings in linux 2016-06-08 00:35:04 +00:00
Charlie Gordon
b962e33ade updated copyrights 2016-03-06 19:53:06 +00:00
Charlie Gordon
66acc15b06 extra-modes: syntax fixes, added new syntaxes
- fixed fortran number syntax
- fixed comments for init files
- added coffee-mode for the Javascript-like Coffee language
- use coffee-mode for Cakefile
- added scad-mode for the OpenSCAD language
- use single set_color for ini_colorize_line, python_colorize_line
  ruby_colorize_line, elixir_colorize_line, agena_colorize_line
2016-03-06 18:45:20 +00:00
Charlie Gordon
2df74ac150 haskell: colorize compiler directives 2015-09-01 10:14:30 +00:00
Charlie Gordon
f0aa3a4bd8 cosmetics: untabify, remove trailing spaces 2015-08-27 23:03:39 +00:00
Charlie Gordon
f4001a3610 haskel-mode: add keywords, fix multi-line comment coloring 2015-08-16 17:31:50 +00:00
Charlie Gordon
ff5865af95 use qe_isblank instead of qe_isspace in syntax colorizers 2015-08-07 20:55:40 +00:00
Charlie Gordon
04bc922185 factorized check_fcall(), simplified some colorizers 2015-08-07 16:45:10 +00:00
Charlie Gordon
3097c63d03 fortran: added extensions .for and .f03 2015-08-04 11:22:33 +00:00
Charlie Gordon
4d17aec176 select fortran mode for files with .f95 extension 2015-07-30 17:52:07 +00:00
Charlie Gordon
a80d4e2dd4 improves markdown mode
* made verbatim block coloring completely generic using language name lookup
* removed global references to most snytax coloring modes
2015-06-19 14:34:30 +00:00
Charlie Gordon
f1671cd244 fixed keyword and type lists for agena syntax 2015-06-08 07:24:39 +00:00
Charlie Gordon
3be315b2b8 added Smalltalk colorizer 2015-05-14 07:34:39 +00:00
Charlie Gordon
23ed16928f added syntax colorizer for Agena language 2015-05-09 22:22:22 +00:00
Charlie Gordon
abfb4836f8 made OCaml identifiers case sensitive 2015-05-09 22:21:32 +00:00
Charlie Gordon
44364e19d2 reworked Elixir syntax colorizer 2015-05-09 22:18:22 +00:00
Charlie Gordon
c68eb90fcf improve sql syntax detection for sqlite dumps 2015-05-09 22:17:07 +00:00
Charlie Gordon
d0c1e89daf added check_fcall() function to factorize function call detection 2015-05-09 22:15:45 +00:00
Charlie Gordon
fec9dc3352 added coloring for Elixir language 2015-05-04 19:48:52 +00:00
Charlie Gordon
48d09d10a8 added nil as a keyword for Erlang coloring 2015-05-04 19:47:06 +00:00
Charlie Gordon
e4e213680f added Erlang colorizer 2015-05-03 10:21:35 +00:00
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