 ;;; Code:
 
 (require 'cc-mode)
+(require 'compile)
 
 ;; These are only required at compile time to get the sources for the
 ;; language constants.  (The cc-fonts require and the font-lock

;;; dart-mode.el --- a Dart mode for emacs based upon CC mode. 

;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2 of the License, or
;; (at your option) any later version.
;; 
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.
;; 
;; You should have received a copy of the GNU General Public License
;; along with this program; see the file COPYING.  If not, write to
;; the Free Software Foundation, Inc., 59 Temple Place - Suite 330,

;; Dart has no boolean but a string and a vector type.
(c-lang-defconst c-primitive-type-kwds
  dart (append '("bool" "var")
             (delete "boolean"
                     ;; Use append to not be destructive on the
                     ;; return value below.
                     (append
                      ;; Due to the fallback to Java, we need not give
                      ;; a language to `c-lang-const'.
                      (c-lang-const c-primitive-type-kwds)
                      nil))))

;; Recognize member init lists after colons in Dart.
(c-lang-defconst c-nonlabel-token-key
