 ;;
 ;; Buzz syntax table
 ;;
-(defvar buzz-syntax-table nil "Syntax table for `buzz-mode'.")
 (setq buzz-syntax-table
       (let ((synTable (make-syntax-table)))
         (modify-syntax-entry ?# "< b" synTable)

;;
;; Define token classes and regular expressions
;;
(defconst buzz-identifier-regexp "[[:alnum:]_]+"
  "Regexp matching a Buzz identifier")
;; Keywords
(setq buzz-keywords '("var" "nil" "if" "else" "function" "return" "for" "while" "and" "or" "not"))
(setq buzz-keywords-regexp (regexp-opt buzz-keywords 'words))

              (forward-line -1)
            (setq stop 'true))))
      ;; +1 for each open parenthesis
      ;; -1 for each closed parenthesis
      ;; TODO: this considers also parentheses in comments, but it shouldn't
      (setq cur-indent
            (- (count-matches "[[{(]"  (point) cur-point)
               (count-matches "[]})]" (point) cur-point))))
