Ignore:
Timestamp:
Sep 20, 2013, 5:57:41 PM (8 years ago)
Author:
gz
Message:

Introduced a new convention: symbols exported from the HEMLOCK package are there for the IDE to use. Added a new hemlock file, display.lisp, which defines a set of such functions, mostly code that used to be in the IDE but had no actual Cocoa dependencies - we now have hemlock:update-current-package, hemlock:paren-matching-bounds, hemlock:selection-for-click, hemlock:move-point-for-click, and hemlock:compute-syntax-coloring.

New fn hemlock-ext:lookup-color maps a color description to a Cocoa color object. The current implementation is rudimentary, I'm hoping someone can make
it more real.

Extended hemlock:compute-syntax-coloring to add coloring for symbols. This fixes ticket:125.
To change how symbol colors get decided, you're most likely to want to modify some of:

hemlock::compute-symbol-category
hemlock::defining-symbol-p
hemlock::*lisp-code-colors*

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/cocoa-ide/hemlock/src/package.lisp

    r15886 r15906  
    395395   #:raise-buffer-view
    396396   #:string-to-clipboard
     397   #:lookup-color
    397398   ))
    398399
     
    622623(defpackage :hemlock
    623624  (:use :common-lisp :hemlock-interface :hemlock-internals :hemlock-ext)
    624   )
     625  (:export ;; Symbols defined in hemlock for use in the IDE
     626   #:with-display-context
     627   #:update-current-package
     628   #:paren-matching-bounds
     629   #:compute-syntax-coloring
     630   #:selection-for-click
     631   #:move-point-for-click
     632   #:edit-definition
     633   ))
    625634
    626635
Note: See TracChangeset for help on using the changeset viewer.