| OLD | NEW |
| 1 ;;; dart-mode.el --- a Dart mode for emacs based upon CC mode. | 1 ;;; dart-mode.el --- a Dart mode for emacs based upon CC mode. |
| 2 | 2 |
| 3 ;; This program is free software; you can redistribute it and/or modify | 3 ;; This program is free software; you can redistribute it and/or modify |
| 4 ;; it under the terms of the GNU General Public License as published by | 4 ;; it under the terms of the GNU General Public License as published by |
| 5 ;; the Free Software Foundation; either version 2 of the License, or | 5 ;; the Free Software Foundation; either version 2 of the License, or |
| 6 ;; (at your option) any later version. | 6 ;; (at your option) any later version. |
| 7 ;; | 7 ;; |
| 8 ;; This program is distributed in the hope that it will be useful, | 8 ;; This program is distributed in the hope that it will be useful, |
| 9 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 ;; buffer, including setup of the mode menu, font-lock, etc. | 153 ;; buffer, including setup of the mode menu, font-lock, etc. |
| 154 ;; There's also a lower level routine `c-basic-common-init' that | 154 ;; There's also a lower level routine `c-basic-common-init' that |
| 155 ;; only makes the necessary initialization to get the syntactic | 155 ;; only makes the necessary initialization to get the syntactic |
| 156 ;; analysis and similar things working. | 156 ;; analysis and similar things working. |
| 157 (c-common-init 'dart-mode) | 157 (c-common-init 'dart-mode) |
| 158 (easy-menu-add dart-menu) | 158 (easy-menu-add dart-menu) |
| 159 (run-hooks 'c-mode-common-hook) | 159 (run-hooks 'c-mode-common-hook) |
| 160 (run-hooks 'dart-mode-hook) | 160 (run-hooks 'dart-mode-hook) |
| 161 (c-update-modeline)) | 161 (c-update-modeline)) |
| 162 | 162 |
| 163 (add-to-list 'compilation-error-regexp-alist 'dart) |
| 164 (add-to-list 'compilation-error-regexp-alist-alist '(dart "Function: '[^']*' url
: 'file://\\([^']*\\)' line:\\([0-9]*\\) col:\\([0-9]*\\)" 1 2 3)) |
| 165 |
| 163 (provide 'dart-mode) | 166 (provide 'dart-mode) |
| 164 | 167 |
| 165 ;;; dart-mode.el ends here | 168 ;;; dart-mode.el ends here |
| OLD | NEW |