From 43d4e2252699ff5f51e41ccf1efe5c2718145320 Mon Sep 17 00:00:00 2001 From: Eric Niebler Date: Thu, 28 Aug 2025 12:45:44 -0700 Subject: [PATCH] Add support for CUDA C++ See stkb/Rewrap#414 for the issue this addresses, and thank you for reviving the Rewrap extension. --- core/Parsing.Documents.fs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/Parsing.Documents.fs b/core/Parsing.Documents.fs index 6380590..a4d15dd 100644 --- a/core/Parsing.Documents.fs +++ b/core/Parsing.Documents.fs @@ -76,6 +76,15 @@ let mutable languages = [ cLine ] ) + lang "CUDA C++" "cuda-cpp" ".cu|.cuh" + ( oldSourceCode + [ customBlock DocComments.javadoc ( "*", " * " ) javadocMarkers + Parsing.SourceCode.cBlock + customLine xmldoc "///" + customLine DocComments.javadoc "//!?" + cLine + ] + ) lang "C#" "csharp" ".cs" ( oldSourceCode [ customLine xmldoc "///"; cLine