John Benediktsson
440b56a9f0
misc/vim: dos2unix factor-docs.vim.
2020-06-08 11:21:09 -07:00
John Benediktsson
d9210f738d
editors.vim.generate-syntax: merge in factor.vim.fgen.
2020-06-08 11:21:09 -07:00
Dusk
70cf73b032
fixup! [misc] vim/syntax: Fixups
...
(Thanks, @mrjbq7!) Now:
+ `CHAR:` literals highlight the whole next token.
+ `0b...` binary literals don't require invalid `+=0b` or `-=0b` syntax.
+ Float literals can't start with a `,` separator.
+ Float literals can have exponents with `,` separators.
+ `foo: ...` stack effects function as intended in general.
+ Syntax clusters might be a bit cleaner with `g:factor_syn_no_error`.
+ Error match priority should be cleaned up.
2020-06-07 05:35:13 +00:00
Dusk
f70ce01b51
editors.vim.generate-syntax: Match new generation
...
Also update the vim/syntax README.
2020-06-06 20:32:17 -07:00
Dusk
35b8621306
[misc] vim/syntax: Fixups
...
(Thanks, @mrjbq7!) Now:
+ `CHAR:` literals highlight the whole next token.
+ `0b...` binary literals don't require invalid `+=0b` or `-=0b` syntax.
+ Float literals can't start with a `,` separator.
+ Float literals can have exponents with `,` separators.
+ `foo: ...` stack effects function as intended in general.
+ Syntax clusters might be a bit cleaner with `g:factor_syn_no_error`.
2020-06-06 20:31:59 -07:00
John Benediktsson
61635500f2
vim: missed a char in 0b fix.
2020-06-06 19:02:21 -07:00
John Benediktsson
ddf498d5ad
vim: fix syntax highlighting of CHAR:, 0b, NAN:.
2020-06-06 19:00:41 -07:00
Dusk
14b1418f6a
[misc] vim/syntax: Overhaul syntax highlighting
...
Also fixes comments in a lot more places than a few commits ago.
Syntax like the following is proper, and the comment highlighting fixes
from last commit make the incorrect highlighting here really stand out:
```factor
USE: ! only this line highlights
kernel
```
2020-06-07 00:10:18 +00:00
Dusk
686f707078
[misc] vim/syntax: Very magic patterns
...
From Vim's |pattern.txt|, |/\v| |/\V|:
> Use of "\v" means that after it, all ASCII characters except
> '0'-'9', 'a'-'z', 'A'-'Z' and '_' have special meaning: "very magic"
This mostly makes some upcoming syntax pattern refactoring cleaner,
though most patterns still get shorter here.
2020-06-07 00:10:18 +00:00
Dusk
11757d87fb
[misc] vim/syntax: Proper comment precedence
...
Now comments, a lexer level feature, won't get beat out by rather normal
syntactic parser constructs like `STRUCT:`.
2020-06-07 00:10:18 +00:00
Dusk
710b54869a
[misc] vim: Hygenic text width highlights
...
This lets Factor's overly long line highlighting avoid bleeding over
into documentation source buffers, or buffers of other non-Factor file
types entirely. Also, by taking `:2match` instead of `:match`,
clobbering of most user matches (or vice versa) can be avoided.
Unfortunately, the highlighting effects all windows in a multi-buffer
split setup, but since we can't reasonably make this a `:syntax match`
group, it'll have to do. (And this behavior isn't new.)
2020-06-07 00:10:18 +00:00
John Benediktsson
07833d94c6
misc/vim: update syntax for cartesian-find.
2019-12-13 19:31:17 -08:00
John Benediktsson
ec58d39bb2
misc/vim: update vim syntax keywords.
2019-12-13 14:41:43 -08:00
Doug Coleman
9f213f96f6
core: Add the shuffler words but without primitives.
...
The nipd branch slowed bootstrap by a minute, this patch does not.
sorry about changing the fjsc line endings...
2018-06-19 22:52:58 -05:00
John Benediktsson
fcaf4eb39c
misc/vim: update syntax file for none? addition.
2018-02-14 11:57:05 -08:00
John Benediktsson
e82ea77524
misc/vim/syntax: update factor syntax.
2018-01-18 15:33:08 -08:00
Doug Coleman
01aab7c884
Factor: Rename <enum> to <enumerated> to not confuse with ENUM:s
2017-07-03 12:47:19 -07:00
Doug Coleman
32710df620
core/basis: Rename tuples kernel:curry -> curried, kernel:compose -> composed.
...
Also rename the stack-checker curried -> curried-effect, composed -> composed-effect.
2017-06-02 17:39:20 -05:00
Doug Coleman
c5b563ed09
factor: Rename start -> subseq-start, start* -> subseq-start-from.
...
I also removed aliases for start/end from interval-maps and interval-sets and added a comment. I don't think it's any less clear what's going on.
2017-06-01 14:45:54 -05:00
Doug Coleman
c706bdae4e
factor: Fix misc/ for GENERIC# -> GENERIC#: rename.
2017-06-01 14:05:15 -05:00
John Benediktsson
b502ad7ac6
misc/vim: update with new core word renames.
2015-08-13 17:56:16 -07:00
John Benediktsson
5f29e1c131
misc/vim: syntax highlight PRIMITIVE:.
2015-07-15 09:28:32 -07:00
John Benediktsson
e72ad0c4f7
update vim syntax file.
2015-05-12 19:40:21 -07:00
John Benediktsson
a4aa9a9688
misc: fix syntax highlighting for new escape codes.
2014-06-03 18:05:06 -07:00
John Benediktsson
9a989f8e9d
misc: fix builtin tuple highlighting.
2014-05-20 09:37:52 -07:00
John Benediktsson
57e0c711a1
misc: sort vim keywords and fix GENERIC#.
2014-05-20 09:33:34 -07:00
John Benediktsson
f27bb01ec8
misc/vim: highlight numbers with leading "+" (e.g., "+12").
2013-03-16 13:50:09 -07:00
John Benediktsson
bea4724cc8
vim: update syntax file for new kernel words.
2012-10-22 13:46:17 -07:00
John Benediktsson
28f36a25b0
Revert "core: >array, >byte-vector, >hashtable, >vector should be inline."
...
This reverts commit cd6026e70e
.
2012-10-05 08:30:41 -07:00
John Benediktsson
700cee5afd
core: >array, >byte-vector, >hashtable, >vector should be inline.
2012-09-28 19:31:14 -07:00
John Benediktsson
1f0e2c6715
vim: fix ".1" to be float syntax highlighted.
2012-09-26 21:32:34 -07:00
John Benediktsson
474913646f
misc: fix syntax highlighting for MATH: generics.
2012-09-14 09:05:20 -07:00
John Benediktsson
719f190e99
misc: highlight TYPED: in vim.
2012-08-28 16:34:17 -07:00
John Benediktsson
c26ac5890e
misc: support new escapes in vim.
2012-07-26 19:24:52 -07:00
John Benediktsson
c894bc098d
misc/vim: updating keywords for core vocabs.
2012-07-23 09:08:41 -07:00
John Benediktsson
09ea62edf6
misc: update vim syntax file using ``generate-vim-syntax``.
2012-07-11 14:28:15 -07:00
John Benediktsson
34b9b5156a
vim: allow sign of exponent to be optional (e.g., "1e10" should be highlighted correctly).
2012-05-29 07:43:09 -07:00
John Benediktsson
78f7a8bc58
vim: fix float syntax highlighting of "1."
2012-05-28 20:48:15 -07:00
Joe Groff
72de75b881
let's pretend BIN: HEX: OCT: never happened
2011-11-23 19:22:37 -08:00
John Benediktsson
315896c857
factor.vim: fix syntax highlight for exponentials (i.e. "1.5e10").
2011-09-21 19:29:56 -07:00
John Benediktsson
6bf9b971f2
factor.vim: fix highlighting of negative ratios.
2011-09-10 21:08:37 -07:00
Joe Groff
e8340c5196
misc/vim/syntax: highlight row variables in stack effects
2011-09-03 11:10:08 -07:00
yac
8eea81b0d4
Improved stack effect highlighting in vim.
...
Delimiters and items in stack effect are highlighted separately, works on
call( -- ) and execute( -- ) too.
2011-06-23 21:01:35 +02:00
Keita Haga
945d5f5c49
misc/vim/syntax/factor.vim: merge two factorComment highlight groups together into one
2011-04-06 15:28:59 +09:00
Keita Haga
f2528568bc
misc/vim/README.md: update filename
2011-04-05 12:37:10 +09:00
Keita Haga
0f64c5ae58
misc/vim/ftplugin/factor.vim: add copyright header
2011-04-05 10:47:08 +09:00
Keita Haga
9884a73664
misc/vim/syntax/factor.vim: fix factorCallQuotation, factorExecute match patterns
2011-04-05 04:03:17 +09:00
Keita Haga
9f6f498cb6
misc/vim/syntax/factor.vim: update comments
2011-04-05 03:45:34 +09:00
Keita Haga
811cab4f60
misc/vim/syntax/factor.vim: re-fix factorStackEffect, factorLiteralStackEffect match
2011-04-05 03:42:47 +09:00
Keita Haga
bb1c6c60c2
misc/vim/syntax/factor.vim: add support for M\ syntax
2011-04-05 02:30:14 +09:00