From 2aa386f4556e49853e5c889d1d104499354d175c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6ran=20Karl?= <3951388+JoeKar@users.noreply.github.com> Date: Thu, 26 Oct 2023 20:24:21 +0200 Subject: [PATCH] syntax: Prepare a concrete signature example for C++ --- runtime/syntax/cpp.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtime/syntax/cpp.yaml b/runtime/syntax/cpp.yaml index 3c97b2c4..e84c3cd4 100644 --- a/runtime/syntax/cpp.yaml +++ b/runtime/syntax/cpp.yaml @@ -1,7 +1,8 @@ filetype: c++ detect: - filename: "(\\.c(c|pp|xx)$|\\.h(h|pp|xx)$|\\.ii?$|\\.(def)$)" + filename: "(\\.c(c|pp|xx)$|\\.h(h|pp|xx)?$|\\.ii?$|\\.(def)$)" + signature: "namespace|template|public|protected|private" rules: - identifier: "\\b[A-Z_][0-9A-Z_]*\\b"