Commit graph

127 commits

Author SHA1 Message Date
Charlie Gordon
89b3ccbda3 clang: detect objective-C header files 2017-04-19 08:14:31 +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
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
e5c5103335 clang: improve auto-indentation
- auto-indent multi-line comments to align initial stars
  such as this:

  /* This is a comment
   * with a second line.
   */

and free form comment paragraphs this way:

  /* This is a comment
     with a second line.
   */
2017-04-10 17:09:22 +00:00
Charlie Gordon
799b1489bc display: full support for 256 color virtual terminal
- add various utilities for color escape sequence testing:
  tests/16colors.pl
  tests/256colors2.pl
  tests/color-spaces.pl
  tests/truecolors.sh
  tests/xterm-colortest.sh
  tests/xterm-colour-chart.py
- use colored code-points only for syntax highlighting
- use QETermStyle and QEStyleDef internally
- convert to TTYChar attributes only for text terminal output.
- remove most CHAR_MASK and STYLE_SHIFT handling
- pass QETermStyle array to get_colorized_line mode handlers
- pass QETermStyle array to isearch_colorize_matches
- remove combine_static_colorized_line
- move color matching functions to util.c
- rename get_tty_color as qe_map_color
- improve local variable naming consistency:
  DisplayState *ds, QEStyleDef *stp, QEStyleDef styledef.
2017-04-03 08:33:57 +00:00
Charlie Gordon
4104ab568b display: improve color and style handling
- add support for 256 and true color terminals
- fix color handling for defined styles
- fix bold, italic and underline handling for terminals
- use more explicit symbols for qe-term emulator in shell.c
- shell buffer terminal emulator still uses 16 colors
- display buffer style in C-X =
- bumped version to 0.5.0dev
2017-04-02 01:12:01 +00:00
Charlie Gordon
0eae5a52fb fix parenthesis colors 2017-03-31 19:12:07 +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
35d2610146 clang: add primitive tag support
- add buffer properties with offset tracking
- use buffer properties for type, macro, function and object definitions.
- display current function or type name on mode line
- add list-tags command to show the tags detected for the current buffer
- add goto-tag on C-X , and M-F1 to jump to the definition of the current word
- add find-tag on C-X . to search for a given tag with completion
2017-03-31 07:51:56 +00:00
Charlie Gordon
d06fdbfd14 basic: changed API for popup windows
- pass current window to show_popup()
- remove show_ptr argument from new_help_buffer()
- call show_popup() unconditionally
- add int eb_vprintf(EditBuffer *b, const char *fmt, va_list ap);
2017-03-26 15:57:24 +00:00
Charlie Gordon
91d842618f modes: add less mode for .less files
- rename all popup related mode functions from less_* to popup_*
- add less-mode for .less files (preprocessor for css files)
- add FILE to list of C types
2017-03-25 18:00:52 +00:00
Charlie Gordon
12a44b104e clang: fix alignment bug on ternary operator 2017-03-18 14:24:47 +00:00
Charlie Gordon
a63aff6f3e fixed compilation on stack Debian 2017-03-16 17:18:29 +00:00
Charlie Gordon
ae68f6ec34 clang: improve auto-indentation
- fix auto indent at end of file
- remove blanks at end of line in c-newline
2017-03-06 12:53:53 +00:00
Charlie Gordon
79bf90c8d6 basic: simplifications
- remove `eb_nextc_style()`
- `eb_nextc()` does not modify `b->cur_style`
- add `eb_get_style()` to retrieve style for given offset in full-style buffers
- add `eb_next()` and `eb_prev()` to skip chars
- pass `offset` to `eb_get_line()` and `generic_get_colorized_line()`...
- use `eb_skip_chars()` in `do_delete_char()` and `text_write_char()`
- replaced `eb_get_strline()` with `eb_fgets()` with similar semantics
  except return value is number of bytes before the newline or end of line
- no longer pass end offset to `isearch_colorize_matches()`
- just pass number of code points to `combine_static_colorized_line()`
- no longer call `isearch_colorize_matches` from `generic_get_colorized_line`
2016-12-23 19:51:48 +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
e4dbd08a7f clang: prevent auto indentation on electric keys if auto-indent is disabled 2016-12-23 12:05:22 +00:00
Charlie Gordon
f28acb6b4c added js specific colorizer for speed on large json files 2016-12-13 09:10:47 +00:00
Charlie Gordon
aa437115f8 add virgil language colorizer 2016-11-26 11:01:55 +00:00
Charlie Gordon
9f693f5aa3 clang: prevent crash bug if tab-width is set to 0 2016-07-15 14:49:03 +00:00
Charlie Gordon
9d5fc34605 clang: add C-minus colorizer 2016-05-21 16:04:16 +00:00
Charlie Gordon
b962e33ade updated copyrights 2016-03-06 19:53:06 +00:00
Charlie Gordon
d120014e73 clang: small fixes, added pawn-mode
- improved regex divide discrimination
- select javascript-mode for node scripts
- added pawn-mode for *.p files with pascal disambiguation
2016-03-06 18:21:58 +00:00
Charlie Gordon
8ba10d70b9 clang: reorder definitions
- move all definitions for each language together with mode struct.
- add generic flag for triple quoted strings
2015-11-13 08:37:08 +00:00
Charlie Gordon
adcd271ebf fix compilation errors on linux 2015-10-13 20:54:00 +00:00
Charlie Gordon
12bcbe9e43 added C flavor for C! (cbang) from EPITA/LSE laboratory 2015-10-04 17:16:12 +00:00
Charlie Gordon
8591718dd2 clang: add colorizer for JetBrains Kotlin language 2015-09-16 12:58:33 +00:00
Charlie Gordon
d815596cc2 clang: improve idl colorizer
- add keywords
- add generic flag for mixed case capitalized typenames
2015-09-16 12:56:04 +00:00
Charlie Gordon
415907161d clang: small improvement on regex coloring for jsx mode 2015-09-09 23:55:26 +00:00
Charlie Gordon
f0aa3a4bd8 cosmetics: untabify, remove trailing spaces 2015-08-27 23:03:39 +00:00
Charlie Gordon
9ab179d048 fix linux compile warnings 2015-08-27 18:52:30 +00:00
Charlie Gordon
375187456d clang: improve regex detection in javascript and similar scripts 2015-08-16 17:28:45 +00:00
Charlie Gordon
1fd5a57bae dired: improve preview-mode
- pass bf_flags for buffer creation from do_find_file() ...
- do not set BF_PREVIEW flag for existing buffers from dired
- exit preview-mode with C-g and RET
- SPC and BSP move by page in preview-mode
- add Preview mode-line indicator
- add preview-mode() command
2015-08-10 19:44:19 +00:00
Charlie Gordon
6852093779 added colorizer for C2 language 2015-08-10 18:29:49 +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
cab6df9cb8 add colorizer for the Groovy programming language 2015-08-07 08:28:59 +00:00
Charlie Gordon
b8eee898b3 simplify and improve java support
- parse @annotations generically
- assume all words with an initial capital and at least one lowercase letter
  are type names.
- colorize shebang line as preprocessor
2015-08-04 17:14:29 +00:00
Charlie Gordon
e5df36b74a add colorizer for Ralph Griswold icon language 2015-07-28 19:03:23 +00:00
Charlie Gordon
df82b6a4af added rust-mode for the Rust Programming Language 2015-06-19 14:49:10 +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
2d82194349 added scala syntax 2015-06-08 07:40:39 +00:00
Charlie Gordon
e7a6a98a37 updated list of java keywords 2015-06-08 07:32:40 +00:00
Charlie Gordon
3567b51fe4 added json specific syntax with content based auto-detection 2015-06-08 07:30:00 +00:00
Charlie Gordon
534a800ccd customized enscript scoring for *.st files 2015-05-14 07:21:36 +00:00
Charlie Gordon
7c07cff57d added simple SciLab colorizer 2015-04-14 20:25:38 +00:00
Charlie Gordon
9806c6ccee added colorizer for metro-man Alloy language 2015-04-05 15:45:54 +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
11b2f6066e extend clang with new variants
* add awk and csl modes based on clang
* select c-mode on #define and #ifndef
2014-08-09 17:21:59 +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