From 81965898869bb09068df91b4c7e234801982dd9b Mon Sep 17 00:00:00 2001 From: Jack Morrison Date: Sun, 13 Dec 2015 20:20:51 -0700 Subject: [PATCH] Fixes Issue #6. --- cuda-mode.el | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/cuda-mode.el b/cuda-mode.el index 0db1590..dc27d0f 100644 --- a/cuda-mode.el +++ b/cuda-mode.el @@ -277,12 +277,11 @@ Each list item should be a regexp matching a single identifier." (c-lang-const c-matchers-3 cuda) "Accurate normal highlighting for CUDA mode.") -(defvar cuda-font-lock-keywords - (append cuda-font-lock-keywords-3 - (list - (list - (regexp-opt cuda-builtins 'symbols) - (0 'font-lock-builtin-face)))) +;;; Not used yet. Still figuring out cc-mode. +(setq cuda-builtins-regexp (regexp-opt cuda-builtins 'symbols)) +(setq cuda-builtins-regexp nil) + +(defvar cuda-font-lock-keywords cuda-font-lock-keywords-3 "Default expressions to highlight in CUDA mode.") (defvar cuda-mode-syntax-table nil