From 401dca3deda60bba52b749c664da9f3d37b4c16b Mon Sep 17 00:00:00 2001 From: elftausend <76885970+elftausend@users.noreply.github.com> Date: Fri, 16 Feb 2024 17:10:20 +0100 Subject: [PATCH] Add support for .cu files --- README.md | 1 + syntax.json | 16 ++++++++++++++++ tests/test_closed.diff | 11 +++++++++++ tests/test_new.diff | 14 ++++++++++++++ tests/test_todo_parser.py | 6 ++++++ 5 files changed, 48 insertions(+) diff --git a/README.md b/README.md index 3f7760b..a295787 100644 --- a/README.md +++ b/README.md @@ -143,6 +143,7 @@ These will be applied automatically to every issue, but will be overrode by any - CSS - Crystal - Clojure +- Cuda - Dart - Elixir - GDScript diff --git a/syntax.json b/syntax.json index f9c96a9..9b98227 100644 --- a/syntax.json +++ b/syntax.json @@ -748,5 +748,21 @@ } } ] + }, + { + "language": "Cuda", + "markers": [ + { + "type": "line", + "pattern": "//" + }, + { + "type": "block", + "pattern": { + "start": "/\\*", + "end": "\\*/" + } + } + ] } ] diff --git a/tests/test_closed.diff b/tests/test_closed.diff index e8219ac..568838e 100644 --- a/tests/test_closed.diff +++ b/tests/test_closed.diff @@ -364,3 +364,14 @@ index 0000000..a6c6cb0 -