mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 05:42:29 +00:00
Polish up repository and other revisions
This commit is contained in:
parent
d23bb6612e
commit
2e979c00c3
541 changed files with 626 additions and 590 deletions
|
@ -145,11 +145,6 @@
|
|||
;;
|
||||
("^/.*$" . font-lock-comment-face)
|
||||
|
||||
;; Preprocessor Constants
|
||||
;; TODO(jart): Why won't it work?? ;_;
|
||||
(,(concat "\\b" (cosmo-regexpify cosmo-cpp-constants) "\\b") ;; regexp-opt
|
||||
1 font-lock-constant-face)
|
||||
|
||||
;; Immediate Argument
|
||||
;;
|
||||
;; - Valid
|
||||
|
|
|
@ -690,7 +690,7 @@
|
|||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Cosmopolitan Extended Language Keyword Definitions
|
||||
|
||||
(defun cosmo-keywords-hook ()
|
||||
(defun cosmo-c-keywords-hook ()
|
||||
(font-lock-add-keywords
|
||||
nil `((,cosmo-c-keywords-regex . font-lock-keyword-face)
|
||||
(,cosmo-c-builtins-regex . font-lock-builtin-face)
|
||||
|
@ -698,7 +698,12 @@
|
|||
(,cosmo-c-constants-regex . font-lock-constant-face)
|
||||
(,cosmo-c-types-regex . font-lock-type-face))))
|
||||
|
||||
(add-hook 'c-mode-common-hook 'cosmo-keywords-hook)
|
||||
(defun cosmo-asm-keywords-hook ()
|
||||
(font-lock-add-keywords
|
||||
nil `((,cosmo-cpp-constants-regex . font-lock-constant-face))))
|
||||
|
||||
(add-hook 'c-mode-common-hook 'cosmo-c-keywords-hook)
|
||||
(add-hook 'asm-mode-hook 'cosmo-asm-keywords-hook)
|
||||
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue