Commit graph

30 commits

Author SHA1 Message Date
Charlie Gordon
59ce60a518 lisp: add xaos-mode 2017-04-25 13:28:41 +00:00
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
c5a3bb8ecb updated heading 2017-03-25 18:14:59 +00:00
Charlie Gordon
6782c6bc93 lisp: use newer colorizer switch with style variable 2016-05-21 16:18:35 +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
22e103ec12 added much emacs-lisp specific stuff 2015-05-03 10:31:13 +00:00
Charlie Gordon
ca93ebfb86 added colorizer for MacOS Sandbox syntax 2015-05-03 10:28:13 +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
08f72a40b7 add .sch extensions for scheme 2014-06-04 08:24:55 +00:00
Charlie Gordon
e889e961a1 simplify colorizers: syn is never NULL 2014-06-01 18:03:54 +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
2aff3eed4e add syntax colorizer for Clojure lisp flavor 2014-05-30 20:01:01 +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
569401da15 simplify mode init/close
* always regsister callbacks on s->top and s->top_offset
* handle saved_data generically, remove window callback
  this will be replaced with view history mecanism.
2014-05-29 10:26:13 +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
fac4ae98ac improve lisp mode
* create lisp mode flavors for Scheme, Racket, ELisp
* add syntax for ,@ #t #f
* add syntax for scheme comment s-expression on #;
* add syntax for octal, binary and hex constants
2014-04-24 22:11:27 +00:00
Charlie Gordon
ceda512a9c improve lisp mode
* colorize standard lisp functions and builtins as 'keywords' and 'types'
* parse and colorize character constants, numbers, symbols, quoted symbols
2014-04-18 21:00:45 +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
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
5039815fdd fix some mode probe issues
* perform generic test on extension in text_mode_probe
* allow mode force in language modes by returning 1 instead of 0 in probe
2014-02-06 00:22:17 +00:00
Charlie Gordon
890af446cf simplify colorize_line functions: always pass NUL terminated line
* added ustrstart, ustrstr and ustristr utility functions
* simplified org_mode_colorize
2014-01-20 18:04:00 +00:00
Charlie Gordon
6561901967 improve and publish lisp mode for recursive coloring
* publish lisp_mode for recursive coloring
* fix multi-line string coloring
* accept \" to escape quotes in strings
2014-01-10 01:09:26 +00:00
Charlie Gordon
c91bd12b8f simplified editing modes
* added colorize_func in ModeDef struct
* removed mode_init functions for most language modes
* other small improvements in mode_probe functions
* no need for get_basename in mode_probe functions
2014-01-05 23:42:54 +00:00
Charlie Gordon
b3a709013a improve mode selection, cleanup
* pass ModeDef pointer to mode_probe functions
* add extensions field to mode structure
* rename ascii mode to binary mode
* rename mode variables and fields to more specific names
2014-01-04 17:26:30 +00:00
Charlie Gordon
83f2911f36 added simplistic lisp mode 2008-04-04 07:11:07 +00:00