syntax file for the conText editor

Started by newdep, July 24, 2009, 04:43:36 AM

Previous topic - Next topic

newdep

the file newlisp.chl I created once for the context editor was remaining

on my laptop ;-) I forgot all about it..Not sure If I already posted it on the forum befor..





(conText editor is dies days OpenSource at googleCode I noticed..)





//////////////////////////////////////////////////////////////////////////////


Language:               newLisp
Description:            newlisp ConTEXT Highlighter  by newdep
Filter:                 Highlighter files (*.lsp)|*.lsp
HelpFile:
CaseSensitive:          0
LineComment:            ;
BlockCommentBeg:        [text]
BlockCommentEnd:        [/text]
IdentifierBegChars:     a..z A..Z _%@.
IdentifierChars:        a..z A..Z _ 0..9
NumConstBegChars:       0..9 $
NumConstChars:          0..9 #abcdefABCDEF
EscapeChar:              

KeyWords1:    MAIN NaN? abs acos acosh add address amb and append append-file
              apply args array array-list array? asin asinh assoc atan atan2
              atanh atom? base64-dec base64-enc bayes-query bayes-train begin
              beta betai bind binomial callback case catch ceil change-dir char
              chop clean close command-line cond cons constant context context?
              copy-file cos cosh count cpymem crc32 crit-chi2 crit-z current-line
              curry date date-value debug dec def-new default define define-macro
              delete delete-file delete-url det device difference directory directory?
              div do-until do-while doargs dolist dostring dotimes dotree dump dup empty?
              encrypt ends-with env erf error-event error-number error-text eval
              eval-string exec exists exit exp expand explode factor fft file-info
              file? filter find find-all first flat float float? floor flt for for-all
              format fv gammai gammaln gcd get-char get-float get-int get-long get-string
              get-url global global? if ifft import inc index int integer integer?
              intersect invert irr join lambda? last legal? length let letex letn
              list list? load local log lookup lower-case macro? main-args make-dir
              map mat match max member min mod mul multiply name net-accept net-close
              net-connect net-error net-eval net-listen net-local net-lookup net-peek
              net-peer net-receive net-receive-from net-receive-udp net-select net-send
              net-send-to net-send-udp net-service net-sessions new nil nil? normal not
              now nper npv nth nth-set null? number? open or ostype pack parse pipe pmt
              pop post-url pow pretty-print primitive? print println prob-chi2 prob-z
              process protected? push put-url pv quote quote? rand random randomize
              read-buffer read-char read-file read-key read-line real-path ref ref-all
              regex remove-dir rename-file replace replace-assoc reset rest reverse
              rotate round save search seed seek select semaphore sequence series set
              set-locale set-nth setq sgn share signal silent sin sinh sleep slice sort
              source sqrt starts-with string string? sub swap sym symbol? symbols sys-error
              sys-info tan tanh throw throw-error time time-of-day timer title-case trace
              trace-highlight transpose trim true true? unify unique unless unpack until
              upper-case uuid when while write-buffer write-char write-file write-line
              xml-error xml-parse xml-type-tags zero?


KeyWords2:    gs:add-list-item gs:add-separator gs:add-to  gs:append-text gs:button
              gs:canvas gs:check-box gs:check-event gs:clear-list gs:clear-text gs:copy-text
              gs:cut-text gs:color-dialog gs:color-tag gs:combo-box gs:confirm-dialog
              gs:delete-tag gs:destroy-shell gs:dialog gs:disable gs:dispose gs:dispose-splash
              gs:draw-arc gs:draw-circle gs:draw-ellipse gs:draw-image gs:draw-line gs:draw-path
              gs:draw-polygon gs:draw-rect gs:draw-round-rect gs:draw-text gs:enable  gs:eva-shell
              gs:export gs:fill-arc  gs:fill-circle gs:fill-ellipse gs:fill-polygon gs:fill-rect
              gs:fill-round-rect gs:find-text gs:frame gs:get-bounds gs:get-fonts gs:get-font-metrics
              gs:get-screen gs:get-selected-text gs:get-text gs:get-text-position gs:get-version
              gs:goto-text gs:hide-tag gs:image-button gs:image-label gs:init gs:insert-list-item
              gs:insert-tab gs:insert-text gs:key-event gs:label gs:layout gs:load-text gs:listen
              gs:list-box gs:message-dialog gs:menu gs:menu-popup gs:menu-bar gs:menu-item gs:menu-item-check
              gs:mouse-clicked gs:mouse-dragged gs:mouse-event gs:mouse-moved gs:mouse-pressed
              gs:mouse-released gs:mouse-wheel gs:move-tag gs:no-action gs:open-file-dialog gs:panel
              gs:paste-text gs:play-sound gs:progress-bar gs:radio-button gs:redo-text gs:remove-from
              gs:remove-list-item gs:remove-tab gs:request-focus gs:reorder-tags gs:rotate-tag
              gs:run-shell gs:save-file-dialog gs:save-text gs:scale-tag gs:select-list-item
              gs:select-text gs:scroll-pane gs:set-accelerator gs:set-anti-aliasing gs:set-background
              gs:set-bevel-border gs:set-border-layout gs:set-canvas gs:set-caret-color gs:set-color
              gs:set-cursor gs:set-editable gs:set-flow-layout gs:set-font gs:set-foreground gs:set-grid-layout
              gs:set-icon gs:set-look-and-feel gs:set-paint gs:set-pressed-icon gs:set-resizable gs:set-rotation
              gs:set-scale gs:set-selected gs:set-selection-color gs:set-size gs:set-stroke gs:set-syntax
              gs:set-syntax-colors gs:set-tab-size gs:set-text gs:set-titled-border gs:set-tool-tip    
              gs:set-trace gs:set-translation gs:set-value gs:set-visible gs:shear-tag gs:show-popup
              gs:show-tag gs:slider gs:split-pane gs:tabbed-pane gs:text-area gs:text-field
              gs:text-pane gs:toggle-button gs:tool-bar gs:translate-tag gs:undo-text gs:update gs:window
              gs:window-closed



KeyWords3:   ! != $ $0 $1 $10 $11 $12 $13 $14 $15 $2 $3 $4 $5 $6 $7 $8 $9
             $args $idx $main-args % & * + - / < << <= = > >= >> ? @ ^ | ~


KeyWords4: [cmd] [/cmd]


//                      I assume Underline and Strike-out are mutually exclusive

StringBegChar:          " | {
StringEndChar:          " | }
MultilineStrings:       0
UsePreprocessor:        0
CurrLineHighlighted:    0


SpaceCol:               clWhite clBlack
Keyword1Col:            clWhite clBlack
Keyword2Col:            $00C000C0 clBlack
Keyword3Col:            $00C0C000 clBlack
IdentifierCol:          $00C0C0FF clBlack
CommentCol:             $00D0D0D0 clBlack
NumberCol:              clYellow clBlack
StringCol:              clLime clBlack
SymbolCol:              clAqua clBlack
PreprocessorCol:        clOlive clBlack
SelectionCol:           clWhite clNavy
CurrentLineCol:         clYellow $00202020

OverrideTxtFgColor:     0
BlockAutoindent:        0

BlockBegStr:            (
BlockEndStr:            )
Keyword4Col:            clWhite clBlack
Keyword5Col:            $00FFFFC0 clBlack
MatchedBracesCol:       clFuchsia clBlack

-- (define? (Cornflakes))