Commit graph

31 commits

Author SHA1 Message Date
Charlie Gordon
23d82af50c Small fixes
- support SF_NUMBER for buffer sort
- fix image scaling
- support ESC c and fix ESC [ J escape sequences
- add C-u C-x C-n to parse nest-error from current buffer offset
- increase MIN_MMAP_SIZE to 2MB
- add window caption for popup windows
- store completion name in MinibufState for popup window caption
- adjust htmlsrc-mode score:
  85 if both extension and contents match rules
  80 if just one of them matches
- refine c-mode probe function
- simplify print_bindings()
2018-12-19 11:45:39 +00:00
Charlie Gordon
da7db82cb7 updated copyrights, changed version to 5.0beta 2018-04-11 13:46:03 +00:00
Charlie Gordon
cea2008c05 fix flags for embedded scripts and styles in html-src 2018-04-11 09:26:42 +00:00
Charlie Gordon
a3cba9d3a8 htmlsrc: select on plist files 2017-04-19 08:13:24 +00:00
Charlie Gordon
c5a3bb8ecb updated heading 2017-03-25 18:14:59 +00:00
Charlie Gordon
3f605392ec htmlsrc: parse hex html entities 2015-08-19 14:27:40 +00:00
Charlie Gordon
671f634161 changed ustrstart() and ustristart() API
* take an `int *` for the match size instead of a `const unsigned int **`
2015-06-19 14:23:55 +00:00
Charlie Gordon
a38c4aff67 select html-src mode for Elixir template files with .eex extension 2015-05-04 19:49:02 +00:00
Charlie Gordon
b6ac3f2181 add more html extensions 2014-06-04 08:24:26 +00:00
Charlie Gordon
ae3601d217 favor html-src mode over xml colorizer 2014-06-01 12:09:12 +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
ebc8f89a82 prevent strict warnings 2014-05-27 22:59:48 +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
fa22e51806 htmlsrc: check dashes when matching tags 2014-05-20 07:14:23 +00:00
Charlie Gordon
b5447b9945 extend html-src-mode
* add support for ASP scripts with <% %. syntax
* add support for embedded C Sharp scripts
2014-05-17 10:15:21 +00:00
Charlie Gordon
8f5f8350bb improve C, js, java modes, add php mode
* add php support as variant of c-mode
* add js_colorize_line, css_colorize_line and php_colorize_line
  as special cases of c_colorize_line
* use mode_flag specific keyword and type lists for C/CPP, Java, JS, PHP
2014-04-15 08:08:01 +00:00
Charlie Gordon
349a4995a3 improve xml and htmlsrc colorizers
* match script and style tags exactly
* handle short tags
* simplify recursive colorizing for script tags
* use c-mode colorizer for css styles
2014-04-10 08:03:04 +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
054ac2c141 extend colorize_states to 16 bits per line
* extend colorize_states to 16 bits to allow for more recursive
  coloring, such as html-src -> js...
* make htmlsrc-colorize_line public
2014-03-06 20:36:50 +00:00
Charlie Gordon
09bee12c90 Fix mode priority for xml formats
* set priority order to html > htmlsrc > docbook > xml > text > binary
* make unihex a very low priority (1)
* fix unihex display bug on last line
2014-02-10 03:24:34 +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
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
a5eae3ed92 bumped copyrights, some cosmetics 2008-01-08 16:37:54 +00:00
Charlie Gordon
f11cf4a207 eb_scratch takes buffer creation flags
added eb_find_new -> find a buffer by name, create one from flags if not found.
qe_register_cmd_table takes ModeDef* instead of mode name
do_global_set_key -> do_set_key with local/global flag
added local-set-key
reuse *bufed* buffer if one exists
bind increase/decrease-width commands from command definition
cosmetics, comments, remarks
renamed kill buffers from *yank* to *kill-%d*
save QErrorContext in parse_args, load_all_modules:
  improves readability in *messages* buffer
fixed qe_init to fall back from x11 display to terminal session upon failure
2008-01-04 22:24:37 +00:00
Charlie Gordon
4743fa1308 added remove_slash and append_slash path utilities
renamed canonize to canonicalize
added crude support for ~user -> /home/user
added win32 specific stuff in basename
added C-/ as an alias for C-_
some cosmetics, moved code
create files with mode 0644 in raw_save_buffer
untabified, removed redundant spaces
modified code generators to the same effect
2008-01-03 09:51:29 +00:00
Charlie Gordon
fa760147c8 added Perl mode: perl.c
added Makefile mode: makemode.c
added HTML source mode: htmlsrc.c
added more dependencies in Makefile
added styles for HTML source coloring:
    html-comment, html-string, html-script, html-entity, html-tag
no longer rely on \n at end of line in c_colorize_line
2007-12-18 18:07:03 +00:00