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/edit-defs.lisp

    r15880 r15906  
    4141                                       (region mark point)
    4242                                       (region point mark))))
    43       (symbol-at-mark buffer point))))
    44 
    45 (defun symbol-at-mark (buffer mark)
     43      (symbol-at-mark point))))
     44
     45(defun symbol-at-mark (mark)
    4646  (with-mark ((mark1 mark)
    4747              (mark2 mark))
Note: See TracChangeset for help on using the changeset viewer.