]>
gitweb.factorcode.org Git - factor.git/log
Doug Coleman [Fri, 12 Jun 2020 23:23:45 +0000 (18:23 -0500)]
vocabs: On use-vocab we should throw an error if the vocabulary does not exist.
Also ui.pixel-formats.private does not exist so remove that.
Fixes #2298.
Doug Coleman [Wed, 10 Jun 2020 17:05:47 +0000 (17:05 +0000)]
build.sh: Add OS detection for Haiku.
Dusk [Tue, 9 Jun 2020 21:41:02 +0000 (14:41 -0700)]
vim/syntax: Even more fixups.
|:syn-priority| is respected now, :syn-skip & :syn-keepend are used
when appropriate, newlines don't jank stuff up, comments don't extend
match regions, numbers are much more reliable, and stack effect error
highlights return.
A feature request has even been sent to Bram.
https://github.com/vim/vim/issues/872#issuecomment-
641025231
John Benediktsson [Mon, 8 Jun 2020 19:03:54 +0000 (12:03 -0700)]
misc/vim: change stack effects to not highlight when required
This is due to optional requirement in some forms, for example M:.
John Benediktsson [Mon, 8 Jun 2020 18:39:41 +0000 (11:39 -0700)]
ui.tools.listener: re-order emacs keybinding docs.
John Benediktsson [Mon, 8 Jun 2020 18:38:30 +0000 (11:38 -0700)]
misc/vim: fix NAN: highlighting, and private generic definitions.
John Benediktsson [Mon, 8 Jun 2020 18:20:44 +0000 (11:20 -0700)]
misc: add private definitions to syntax-test file.
John Benediktsson [Mon, 8 Jun 2020 18:20:27 +0000 (11:20 -0700)]
misc/vim/syntax: fix private word highlights.
John Benediktsson [Mon, 8 Jun 2020 18:08:30 +0000 (11:08 -0700)]
misc/vim: dos2unix factor-docs.vim.
John Benediktsson [Mon, 8 Jun 2020 18:06:22 +0000 (11:06 -0700)]
editors.vim.generate-syntax: merge in factor.vim.fgen.
Doug Coleman [Sun, 7 Jun 2020 16:30:43 +0000 (11:30 -0500)]
build.sh: Change WORD size detection to use preprocessor.
Dusk [Sun, 7 Jun 2020 02:04:05 +0000 (19:04 -0700)]
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.
Dusk [Sun, 7 Jun 2020 03:24:56 +0000 (20:24 -0700)]
editors.vim.generate-syntax: Match new generation
Also update the vim/syntax README.
Dusk [Sun, 7 Jun 2020 02:04:05 +0000 (19:04 -0700)]
[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`.
John Benediktsson [Sun, 7 Jun 2020 02:04:21 +0000 (19:04 -0700)]
misc: adding a syntax-test file.
John Benediktsson [Sun, 7 Jun 2020 02:02:21 +0000 (19:02 -0700)]
vim: missed a char in 0b fix.
John Benediktsson [Sun, 7 Jun 2020 02:00:41 +0000 (19:00 -0700)]
vim: fix syntax highlighting of CHAR:, 0b, NAN:.
Dusk [Fri, 5 Jun 2020 08:21:55 +0000 (01:21 -0700)]
[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
```
Dusk [Sun, 31 May 2020 06:27:10 +0000 (23:27 -0700)]
[misc] vim/syntax: Avoid extra group captures
Dusk [Sun, 31 May 2020 04:17:26 +0000 (21:17 -0700)]
[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.
Dusk [Sat, 30 May 2020 00:57:02 +0000 (17:57 -0700)]
[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:`.
Dusk [Fri, 29 May 2020 23:47:22 +0000 (16:47 -0700)]
[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.)
John Benediktsson [Sat, 6 Jun 2020 23:47:30 +0000 (16:47 -0700)]
ui.tools.listener: change previous/next line to multiline-editor.
John Benediktsson [Sat, 6 Jun 2020 23:28:40 +0000 (16:28 -0700)]
ui.tools.listener: document emacs-style keybindings for now.
John Benediktsson [Sat, 6 Jun 2020 23:20:21 +0000 (16:20 -0700)]
Revert "ui: better support for Emacs-style key bindings."
This reverts commit
928b4c6abcb012fc8ad4963a3976ab88d0ade741 .
John Benediktsson [Sat, 6 Jun 2020 23:19:51 +0000 (16:19 -0700)]
Revert "ui.gadgets.editors: adding Ctrl-u support."
This reverts commit
046d128c979988af86808c65568a29a12d1f63d6 .
John Benediktsson [Sat, 6 Jun 2020 23:19:50 +0000 (16:19 -0700)]
Revert "ui.gadgets.editors: make Ctrl-A select-all if at column 0."
This reverts commit
9287b05d57ee40c4e41f7c9c52a4c8f7ac25d6bc .
John Benediktsson [Sat, 6 Jun 2020 23:19:43 +0000 (16:19 -0700)]
Revert "ui.tools: change Alt- to Ctrl-Shift- for tools."
This reverts commit
9c3908e003c0aa2fb04e5e7c25a8a372a7fe2245 .
John Benediktsson [Sat, 6 Jun 2020 23:09:15 +0000 (16:09 -0700)]
ui.backend.gtk: don't let input-methods steal key-presses.
John Benediktsson [Fri, 29 May 2020 21:59:45 +0000 (14:59 -0700)]
ui.tools: change Alt- to Ctrl-Shift- for tools.
John Benediktsson [Fri, 29 May 2020 21:56:58 +0000 (14:56 -0700)]
ui.gadgets.editors: make Ctrl-A select-all if at column 0.
John Benediktsson [Thu, 28 May 2020 16:13:51 +0000 (09:13 -0700)]
images.pbm: use not.
John Benediktsson [Thu, 28 May 2020 16:13:44 +0000 (09:13 -0700)]
logic: use not.
John Benediktsson [Thu, 28 May 2020 03:01:33 +0000 (20:01 -0700)]
ui.gadgets.editors: adding Ctrl-u support.
John Benediktsson [Thu, 28 May 2020 02:49:30 +0000 (19:49 -0700)]
ui: better support for Emacs-style key bindings.
This changes a bunch of things like Ctrl-E for edit becomes Alt-E
(Cmd-E on macOS). I think that's overall nicer, but let's play with it.
John Benediktsson [Wed, 27 May 2020 19:52:45 +0000 (12:52 -0700)]
ui.gadgets.editors: can just use preedit-start>> as boolean.
John Benediktsson [Wed, 27 May 2020 19:51:31 +0000 (12:51 -0700)]
models: cleanup docs for $slots.
John Benediktsson [Wed, 27 May 2020 18:50:04 +0000 (11:50 -0700)]
ui.gadgets.editors: fix off-by-one.
John Benediktsson [Wed, 27 May 2020 18:43:29 +0000 (11:43 -0700)]
ui.gadgets.editors: fix page-up/page-down behavior.
John Benediktsson [Wed, 27 May 2020 18:43:12 +0000 (11:43 -0700)]
ui.gadgets.editors: cleanup docs for $slots.
John Benediktsson [Wed, 27 May 2020 18:18:20 +0000 (11:18 -0700)]
ui.gestures: clean docs for $slots.
John Benediktsson [Wed, 27 May 2020 16:58:07 +0000 (09:58 -0700)]
ui.gadgets.tables: change hook>> to be called on all row-actions.
Not just when a selected-row was available and action>> was called.
Also, call the hook after the action, not before.
John Benediktsson [Wed, 27 May 2020 16:51:01 +0000 (09:51 -0700)]
ui.gadgets.tables: cleanup docs for $slots.
John Benediktsson [Wed, 27 May 2020 16:47:38 +0000 (09:47 -0700)]
lexer: cleanup docs for $slots.
John Benediktsson [Wed, 27 May 2020 16:47:29 +0000 (09:47 -0700)]
threads: cleanup docs for $slots.
Doug Coleman [Wed, 27 May 2020 02:16:11 +0000 (21:16 -0500)]
db.sqlite.ffi: Update the sqlite3 bindings a bit.
John Benediktsson [Tue, 26 May 2020 17:53:16 +0000 (10:53 -0700)]
ui.gadgets.editors: fix page-up/page-down with one line.
John Benediktsson [Tue, 26 May 2020 17:05:09 +0000 (10:05 -0700)]
punycode: adding basic support for Punycode (RFC 3492).
Doug Coleman [Fri, 22 May 2020 23:04:06 +0000 (18:04 -0500)]
ui.backend.x11.keys: Enable numpad navigation keys for when numlock is off.
I recently got a Model F keyboard and the arrow keys weren't mapped.
To see the keycodes on Linux:
```
IN: ui.backend.x11.keys
: code>sym ( code -- name/code/f action? )
dup . flush
dup codes at* [ nip dup t and ] when ;
```
Also try ``USE: gesture-logger``
Doug Coleman [Fri, 22 May 2020 22:52:34 +0000 (17:52 -0500)]
gesture-logger: Add as a demo!
John Benediktsson [Fri, 22 May 2020 23:01:25 +0000 (16:01 -0700)]
help.html: better tests, don't just drop the result.
John Benediktsson [Fri, 22 May 2020 21:41:00 +0000 (14:41 -0700)]
help: some test fixes for recent behavior changes.
John Benediktsson [Fri, 22 May 2020 17:48:34 +0000 (10:48 -0700)]
help: change the "help" word-prop to store the actual documentation.
Change word-help to massage the $inputs and $outputs when requested.
Revert the help.lint.coverage checks to still look for $values.
John Benediktsson [Fri, 22 May 2020 17:47:27 +0000 (10:47 -0700)]
Revert "help.lint.coverage: change $values to $inputs and $outputs."
This reverts commit
61102548f4eec732cf66bb18fc12a81ceadd6ffc .
John Benediktsson [Fri, 22 May 2020 17:14:28 +0000 (10:14 -0700)]
help.html: adding back the link to factorcode.org.
It should probably be a cool logo or something...
timor [Wed, 20 May 2020 15:04:01 +0000 (17:04 +0200)]
shell.nix: supply `wrapFactor` helper to make standalone factor binary
This adds the shell function `wrapFactor`. This function is intended to wrap
the result of calling `build.sh` in the shell environment so it can be executed
outside of the nix shell.
Example:
```
$ nix-shell
[nix-shell] $ ./build.sh bootstrap
...build factor vm and image...
[nix-shell] $ wrapFactor .
exit
$ ./factor
```
`wrapFactor` takes the path to the factor root dir as argument, and expects the
binary `factor` and the image file `factor.image` there and uses Nixpkgs'
`makeWrapper` to wrap the `factor` executable in-place with the correct
`LD_LIBRARY_PATH`. Afterwards, the factor executable can be called outside of
the nix-shell environment.
John Benediktsson [Fri, 22 May 2020 17:03:39 +0000 (10:03 -0700)]
help.html: better navbar on iPhone.
John Benediktsson [Fri, 22 May 2020 15:23:20 +0000 (08:23 -0700)]
ui.backend.cocoa.views: fix jittery resize.
This could still be improved since this current approach pauses Factor
execution when the window is being resized, and it could instead
maybe detect inLiveResize or something and be smoother.
John Benediktsson [Fri, 22 May 2020 15:06:36 +0000 (08:06 -0700)]
help.lint.coverage: change $values to $inputs and $outputs.
John Benediktsson [Fri, 22 May 2020 02:47:28 +0000 (19:47 -0700)]
help: splitting $values into $inputs and $outputs.
This is an automatic conversion, so we can keep writing docs the way we
have been.
John Benediktsson [Fri, 22 May 2020 02:17:56 +0000 (19:17 -0700)]
help.html: copy image resources to output directory.
This helps avoid needing so many different static responders in
webapps.help, and makes the documentation more self-contained.
John Benediktsson [Fri, 22 May 2020 00:31:41 +0000 (17:31 -0700)]
ui.tools.error-list: changing icons from tiff to png.
John Benediktsson [Fri, 22 May 2020 00:25:03 +0000 (17:25 -0700)]
webapps.help: whoops.
John Benediktsson [Fri, 22 May 2020 00:23:47 +0000 (17:23 -0700)]
help.html: support ui/tools/error-list/icons also.
John Benediktsson [Fri, 22 May 2020 00:19:36 +0000 (17:19 -0700)]
html.streams: move icon src mapping to help.html.
John Benediktsson [Thu, 21 May 2020 21:19:43 +0000 (14:19 -0700)]
syntax: allow anonymous MAIN:.
John Benediktsson [Thu, 21 May 2020 03:26:02 +0000 (20:26 -0700)]
webbrowser: adding MAIN.
John Benediktsson [Thu, 21 May 2020 02:47:47 +0000 (19:47 -0700)]
metar: add a main.
John Benediktsson [Wed, 20 May 2020 18:11:57 +0000 (11:11 -0700)]
websites.factorcode: update macos screenshot.
John Benediktsson [Wed, 20 May 2020 17:46:34 +0000 (10:46 -0700)]
definitions.icons: lighter open-vocab/unopen-vocab.
John Benediktsson [Wed, 20 May 2020 16:33:54 +0000 (09:33 -0700)]
definitions.icons: prefer more isometric vocab icons.
John Benediktsson [Wed, 20 May 2020 04:46:46 +0000 (21:46 -0700)]
definitions.icons: fix unopen-vocab.png.
John Benediktsson [Wed, 20 May 2020 04:45:26 +0000 (21:45 -0700)]
definitions.icons: fix some 1x images.
John Benediktsson [Wed, 20 May 2020 03:53:08 +0000 (20:53 -0700)]
help.html: use @2x images.
John Benediktsson [Wed, 20 May 2020 02:10:51 +0000 (19:10 -0700)]
ui.images: fix for gl-scale-factor not being set.
John Benediktsson [Wed, 20 May 2020 02:00:25 +0000 (19:00 -0700)]
ui.images: load 1x or 2x graphics.
timor [Tue, 19 May 2020 15:53:33 +0000 (17:53 +0200)]
compiler.tree.propagation.slots: remove unused word
The last use of `length-accessor?` has been removed in
8e227bc874e356f1e292ab18d1bad1d48966746a , which obsoleted the `length` slot.
John Benediktsson [Tue, 19 May 2020 17:15:50 +0000 (10:15 -0700)]
ui.theme: fix help-path-border-color to match toolbar-background.
John Benediktsson [Tue, 19 May 2020 17:00:05 +0000 (10:00 -0700)]
Revert "ui.pens.image: allow float math."
This reverts commit
2d71fd9e221a7482226eb528c37b24c75df31b8a .
John Benediktsson [Tue, 19 May 2020 16:46:43 +0000 (09:46 -0700)]
ui: update more icons, including ui.tools.error-list.
John Benediktsson [Tue, 19 May 2020 15:25:49 +0000 (08:25 -0700)]
definitions.icons: minor tweak.
John Benediktsson [Tue, 19 May 2020 15:08:12 +0000 (08:08 -0700)]
definitions.icons: minor tweaks.
John Benediktsson [Tue, 19 May 2020 14:49:56 +0000 (07:49 -0700)]
unix.signals: bump time on tests.
John Benediktsson [Tue, 19 May 2020 14:46:25 +0000 (07:46 -0700)]
tools.profiler.sampling: bump runtime.
John Benediktsson [Tue, 19 May 2020 14:41:06 +0000 (07:41 -0700)]
Revert "ui.baseline-alignment: allow floats in alignment."
This reverts commit
c37e9551ad7121049bd7b46960c075dce0c9b8f1 .
John Benediktsson [Tue, 19 May 2020 04:20:10 +0000 (21:20 -0700)]
ui.theme.images: minor scroll arrow fixes.
John Benediktsson [Tue, 19 May 2020 04:09:37 +0000 (21:09 -0700)]
ui.theme.images: minor cleanup.
John Benediktsson [Tue, 19 May 2020 03:57:03 +0000 (20:57 -0700)]
ui.pens.image: allow float math.
John Benediktsson [Tue, 19 May 2020 03:56:25 +0000 (20:56 -0700)]
ui.gadgets.icons: draw icon on top of selected background.
John Benediktsson [Tue, 19 May 2020 03:53:14 +0000 (20:53 -0700)]
ui.baseline-alignment: allow floats in alignment.
John Benediktsson [Tue, 19 May 2020 03:46:27 +0000 (20:46 -0700)]
help.html: set the sizes of 2x definition icons.
John Benediktsson [Tue, 19 May 2020 03:45:58 +0000 (20:45 -0700)]
ui.images: load all UI images as 2x for retina displays.
John Benediktsson [Mon, 18 May 2020 15:06:08 +0000 (08:06 -0700)]
ui.gadgets.labels: only ceiling the height for now.
This might align to every other pixel on a 2x display but it fixes some
rendering artifacts with borders on subpixel boundaries.
John Benediktsson [Mon, 18 May 2020 15:02:06 +0000 (08:02 -0700)]
Revert "ui.gadgets.labels: make labels integer larger than text."
This reverts commit
0b294c5d50207cbbbd27b4acda9b89304e761153 .
John Benediktsson [Mon, 18 May 2020 03:47:22 +0000 (20:47 -0700)]
ui.gadgets.tracks: don't convert dims to floats in track-pref-dims-2.
John Benediktsson [Mon, 18 May 2020 03:45:49 +0000 (20:45 -0700)]
ui.gadgets.borders: don't convert border-loc to fixnum.
John Benediktsson [Mon, 18 May 2020 03:44:21 +0000 (20:44 -0700)]
ui.gadgets.labels: make labels integer larger than text.
John Benediktsson [Mon, 18 May 2020 02:55:59 +0000 (19:55 -0700)]
build.sh: make_boot_image can just use -run=bootstrap.image.
John Benediktsson [Mon, 18 May 2020 02:53:18 +0000 (19:53 -0700)]
bootstrap.image: allow making other images in main.
Doug Coleman [Sat, 16 May 2020 19:49:57 +0000 (14:49 -0500)]
build.sh: Add self-bootstrap option.