Commit 6fa55a44f1334da75c2d461c84ed3b7c96b61100

  • Tree SHA1: e6e7ea4
  • Parent SHA1: 6ff0e2d (Now runs processing from within the sketch directory. Unfortunately this introduces a minor bug)
  • raw diff | raw patch
Mode now requires compilation mode and also includes a regular expression for compilation error matching. But there's a bug with that
README
(5 / 0)
  
2828 the sketch directory. You will have to create a sub-directory called
2929 ``lib'' in the sketch directory which is where the
3030 ``preferences.txt'' file will reside. Sym-linking also works.
31
32* Compilation errors...The regular expression used to detect
33 compilation error messages does indeed work. Unfortunately there is
34 another regular expression that is interfering and being matched
35 _before_ it.
  
88;; Copyright (C) 2008 Rudolf Olah <omouse@gmail.com>
99;; Licensed under the GNU GPL version 3 or later
1010
11(require 'compile)
12
1113(define-derived-mode processing-mode
1214 java-mode "Processing"
1315 "Major mode for Processing.
107107(define-key processing-mode-map "\C-c\C-b" 'processing-sketch-build)
108108
109109;; Regular expressions
110;; For compilation
111;;(pushnew compilation-error-regexp-alist
112;; '(processing "^\\(?:[[:alpha:]]\\)"))
110;; Compilation
111(pushnew
112 ;; Mode name, REGEXP FILE LINE COLUMN TYPE HYPERLINK HIGHLIGHT
113 '(processing "^\\([[:alnum:]]+.pde\\):\\([0-9]+\\):\\([0-9]+\\):.*$"
114 1 2 3)
115 compilation-error-regexp-alist-alist)
116(pushnew 'processing compilation-error-regexp-alist)
113117
114118;; Font-lock, keywords
115119(defconst processing-font-lock-keywords-1