Mercurial > hg > xemacs-beta
comparison lisp/font-lock.el @ 359:8e84bee8ddd0 r21-1-9
Import from CVS: tag r21-1-9
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:57:55 +0200 |
parents | 54f7aa390f4f |
children | a4f53d9b3154 |
comparison
equal
deleted
inserted
replaced
358:fed6e0f6a03a | 359:8e84bee8ddd0 |
---|---|
2321 ;; Special constants: | 2321 ;; Special constants: |
2322 '("\\<\\(this\\|super\\)\\>" (1 font-lock-reference-face)) | 2322 '("\\<\\(this\\|super\\)\\>" (1 font-lock-reference-face)) |
2323 '("\\<\\(false\\|null\\|true\\)\\>" (1 font-lock-keyword-face)) | 2323 '("\\<\\(false\\|null\\|true\\)\\>" (1 font-lock-keyword-face)) |
2324 | 2324 |
2325 ;; Class names: | 2325 ;; Class names: |
2326 (list (concat "\\<class\\>\\s *" java-font-lock-identifier-regexp) | 2326 (list (concat "\\<\\(class\\|interface\\)\\>\\s *" |
2327 1 'font-lock-function-name-face) | 2327 java-font-lock-identifier-regexp) |
2328 2 'font-lock-function-name-face) | |
2328 | 2329 |
2329 ;; Package declarations: | 2330 ;; Package declarations: |
2330 (list (concat "\\<\\(package\\|import\\)\\>\\s *" | 2331 (list (concat "\\<\\(package\\|import\\)\\>\\s *" |
2331 java-font-lock-identifier-regexp) | 2332 java-font-lock-identifier-regexp) |
2332 '(2 font-lock-reference-face) | 2333 '(2 font-lock-reference-face) |
2460 ("\\<public\\>" 0 font-lock-reference-face)) | 2461 ("\\<public\\>" 0 font-lock-reference-face)) |
2461 java-font-lock-keywords-2 | 2462 java-font-lock-keywords-2 |
2462 | 2463 |
2463 (list | 2464 (list |
2464 | 2465 |
2465 ;; Java doc tags | 2466 ;; Javadoc tags |
2466 '("@\\(author\\|exception\\|param\\|return\\|see\\|version\\)\\s " | 2467 '("@\\(author\\|exception\\|throws\\|deprecated\\|param\\|return\\|see\\|since\\|version\\)\\s " |
2467 0 font-lock-keyword-face t) | 2468 0 font-lock-keyword-face t) |
2468 | 2469 |
2469 ;; Doc tag - Parameter identifiers | 2470 ;; Doc tag - Parameter identifiers |
2470 (list (concat "@param\\s +" java-font-lock-identifier-regexp) | 2471 (list (concat "@param\\s +" java-font-lock-identifier-regexp) |
2471 1 'font-lock-variable-name-face t) | 2472 1 'font-lock-variable-name-face t) |
2472 | 2473 |
2473 ;; Doc tag - Exception types | 2474 ;; Doc tag - Exception types |
2474 (list (concat "@exception\\ s*" | 2475 (list (concat "@\\(exception\\|throws\\)\\s +" |
2475 java-font-lock-identifier-regexp) | 2476 java-font-lock-identifier-regexp) |
2476 '(1 (if (equal (char-after (match-end 0)) ?.) | 2477 '(2 (if (equal (char-after (match-end 0)) ?.) |
2477 font-lock-reference-face font-lock-type-face) t) | 2478 font-lock-reference-face font-lock-type-face) t) |
2478 (list (concat "\\=\\." java-font-lock-identifier-regexp) | 2479 (list (concat "\\=\\." java-font-lock-identifier-regexp) |
2479 '(goto-char (match-end 0)) nil | 2480 '(goto-char (match-end 0)) nil |
2480 '(1 (if (equal (char-after (match-end 0)) ?.) | 2481 '(1 (if (equal (char-after (match-end 0)) ?.) |
2481 'font-lock-reference-face 'font-lock-type-face) t))) | 2482 'font-lock-reference-face 'font-lock-type-face) t))) |
2482 | 2483 |
2483 ;; Doc tag - Cross-references, usually to methods | 2484 ;; Doc tag - Cross-references, usually to methods |
2484 '("@see\\s +\\(\\S *[^][ \t\n\r\f(){},.;:]\\)" | 2485 '("@see\\s +\\(\\S *[^][ \t\n\r\f(){},.;:]\\)" |
2486 1 font-lock-function-name-face t) | |
2487 | |
2488 ;; Doc tag - docRoot (1.3) | |
2489 '("\\({ *@docRoot *}\\)" | |
2490 0 font-lock-keyword-face t) | |
2491 ;; Doc tag - beaninfo, unofficial but widely used, even by Sun | |
2492 '("\\(@beaninfo\\)" | |
2493 0 font-lock-keyword-face t) | |
2494 ;; Doc tag - Links | |
2495 '("{ *@link\\s +\\([^}]+\\)}" | |
2496 0 font-lock-keyword-face t) | |
2497 ;; Doc tag - Links | |
2498 '("{ *@link\\s +\\(\\(\\S +\\)\\|\\(\\S +\\s +\\S +\\)\\) *}" | |
2485 1 font-lock-function-name-face t) | 2499 1 font-lock-function-name-face t) |
2486 | 2500 |
2487 ))) | 2501 ))) |
2488 ) | 2502 ) |
2489 | 2503 |