Skip to content
Snippets Groups Projects
Commit 48f36f96 authored by Matthias Sohn's avatar Matthias Sohn
Browse files

DiffDriver: fix formatting of javadoc

Change-Id: I01da1862719b6623727deae10a706f30ee6cabbf
parent 2c86ef24
No related branches found
No related tags found
No related merge requests found
...@@ -28,8 +28,8 @@ ...@@ -28,8 +28,8 @@
@SuppressWarnings({"ImmutableEnumChecker", "nls"}) @SuppressWarnings({"ImmutableEnumChecker", "nls"})
public enum DiffDriver { public enum DiffDriver {
/** /**
* Built-in diff driver for <a * Built-in diff driver for <a href=
* href="https://learn.microsoft.com/en-us/cpp/cpp/cpp-language-reference">c++</a> * "https://learn.microsoft.com/en-us/cpp/cpp/cpp-language-reference">c++</a>
*/ */
cpp(List.of( cpp(List.of(
/* Jump targets or access declarations */ /* Jump targets or access declarations */
...@@ -37,16 +37,16 @@ public enum DiffDriver { ...@@ -37,16 +37,16 @@ public enum DiffDriver {
/* functions/methods, variables, and compounds at top level */ /* functions/methods, variables, and compounds at top level */
"^((::\\s*)?[A-Za-z_].*)$")), "^((::\\s*)?[A-Za-z_].*)$")),
/** /**
* Built-in diff driver for <a * Built-in diff driver for <a href=
* href="https://devicetree-specification.readthedocs.io/en/stable/source-language.html">device * "https://devicetree-specification.readthedocs.io/en/stable/source-language.html">device
* tree files</a> * tree files</a>
*/ */
dts(List.of(";", "="), List.of( dts(List.of(";", "="), List.of(
/* lines beginning with a word optionally preceded by '&' or the root */ /* lines beginning with a word optionally preceded by '&' or the root */
"^[ \\t]*((/[ \\t]*\\{|&?[a-zA-Z_]).*)")), "^[ \\t]*((/[ \\t]*\\{|&?[a-zA-Z_]).*)")),
/** /**
* Built-in diff driver for <a * Built-in diff driver for <a href=
* href="https://docs.oracle.com/javase/specs/jls/se21/html/index.html">java</a> * "https://docs.oracle.com/javase/specs/jls/se21/html/index.html">java</a>
*/ */
java(List.of( java(List.of(
"^[ \\t]*(catch|do|for|if|instanceof|new|return|switch|throw|while)"), "^[ \\t]*(catch|do|for|if|instanceof|new|return|switch|throw|while)"),
...@@ -58,13 +58,13 @@ public enum DiffDriver { ...@@ -58,13 +58,13 @@ public enum DiffDriver {
"^[ \\t]*(([A-Za-z_<>&\\]\\[][?&<>.,A-Za-z_0-9]*[ \\t]+)+[A-Za-z_]" "^[ \\t]*(([A-Za-z_<>&\\]\\[][?&<>.,A-Za-z_0-9]*[ \\t]+)+[A-Za-z_]"
+ "[A-Za-z_0-9]*[ \\t]*\\([^;]*)$")), + "[A-Za-z_0-9]*[ \\t]*\\([^;]*)$")),
/** /**
* Built-in diff driver for <a * Built-in diff driver for
* href="https://docs.python.org/3/reference/index.html">python</a> * <a href="https://docs.python.org/3/reference/index.html">python</a>
*/ */
python(List.of("^[ \\t]*((class|(async[ \\t]+)?def)[ \\t].*)$")), python(List.of("^[ \\t]*((class|(async[ \\t]+)?def)[ \\t].*)$")),
/** /**
* Built-in diff driver for <a * * Built-in diff driver for
* href="https://doc.rust-lang.org/reference/introduction.html">java</a> * <a href="https://doc.rust-lang.org/reference/introduction.html">java</a>
*/ */
rust(List.of("^[\\t ]*((pub(\\([^\\)]+\\))?[\\t ]+)?" rust(List.of("^[\\t ]*((pub(\\([^\\)]+\\))?[\\t ]+)?"
+ "((async|const|unsafe|extern([\\t ]+\"[^\"]+\"))[\\t ]+)?" + "((async|const|unsafe|extern([\\t ]+\"[^\"]+\"))[\\t ]+)?"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment