summaryrefslogtreecommitdiffstats
path: root/txr.vim
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2012-04-11 10:58:40 -0700
committerKaz Kylheku <kaz@kylheku.com>2012-04-11 10:58:40 -0700
commitb43d605b8986b8ef2edd11abf7ed5b7e4313d318 (patch)
tree9ce7f29dc950cae340edd7477aff9a6f8e692729 /txr.vim
parentbe004953796f8286ce614d40670b3b14d61d80ef (diff)
downloadtxr-b43d605b8986b8ef2edd11abf7ed5b7e4313d318.tar.gz
txr-b43d605b8986b8ef2edd11abf7ed5b7e4313d318.tar.bz2
txr-b43d605b8986b8ef2edd11abf7ed5b7e4313d318.zip
Provide access to line number info and source path.
* eval.c (eval_init): New intrinsic functions source-loc and source-loc-str. New variable *self-path*. * txr.1: Stub doc sections. * txr.c (self_path): New variable. * txr.h (self_path): Declared. * txr.vim: Syntax highlighting for source-loc, source-loc-str and *self-path*.
Diffstat (limited to 'txr.vim')
-rw-r--r--txr.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/txr.vim b/txr.vim
index 67cde861..c53730b2 100644
--- a/txr.vim
+++ b/txr.vim
@@ -93,6 +93,7 @@ syn keyword txl_keyword contained random-fixnum random rand
syn keyword txl_keyword contained range range* generate repeat force
syn keyword txl_keyword contained throw throwf error match-fun url-encode url-decode
syn keyword txl_keyword contained time time-usec
+syn keyword txl_keyword contained source-loc source-loc-str
syn match txr_error "@[\t ]*[*]\?[\t ]*."
syn match txr_nested_error "[^\t `]\+" contained