1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-06-01 08:00:48 +00:00

mod: Language Descriptor Improvement (adding some words)

- [x] Add end form for: caption, title, footer, header
- [x] Add stereotypes, circles, circled, member, attribute, field, method, public, private, protected
to be conform with:
  - a27ff9b7f2/src/net/sourceforge/plantuml/classdiagram/command/CommandHideShowByGender.java (L77)
  - a27ff9b7f2/src/net/sourceforge/plantuml/classdiagram/command/CommandHideShowByVisibility.java (L68)
- [x] Change `map` from keyword to type
- [x] Add new type: protocol, struct, exception, metaclass, json
- [x] Add new diagram: hcl, ebnf, regex, files

Related issue:
- https://forum.plantuml.net/18151/using-cypher-does-not-always-recognize-restricted-words

Following this PR, on the same topic:
- https://github.com/plantuml/plantuml/pull/586
This commit is contained in:
The-Lum 2023-08-25 12:54:51 +00:00
parent 63da3270a6
commit 6de021381f

View File

@ -87,6 +87,12 @@ public class LanguageDescriptor {
type.add("label");
type.add("person");
type.add("annotation");
type.add("protocol");
type.add("struct");
type.add("exception");
type.add("metaclass");
type.add("map");
type.add("json");
keyword.add("@startwire");
keyword.add("@startbpm");
@ -111,6 +117,10 @@ public class LanguageDescriptor {
keyword.add("@startgit");
keyword.add("@startboard");
keyword.add("@startyaml");
keyword.add("@starthcl");
keyword.add("@startebnf");
keyword.add("@startregex");
keyword.add("@startfiles");
keyword.add("@endwire");
keyword.add("@endbpm");
keyword.add("@enduml");
@ -134,11 +144,17 @@ public class LanguageDescriptor {
keyword.add("@endgit");
keyword.add("@endboard");
keyword.add("@endyaml");
keyword.add("@endhcl");
keyword.add("@endebnf");
keyword.add("@endregex");
keyword.add("@endfiles");
keyword.add("as");
keyword.add("also");
keyword.add("autonumber");
keyword.add("caption");
keyword.add("endcaption");
keyword.add("title");
keyword.add("endtitle");
keyword.add("newpage");
keyword.add("box");
keyword.add("alt");
@ -186,7 +202,9 @@ public class LanguageDescriptor {
keyword.add("endif");
keyword.add("partition");
keyword.add("footer");
keyword.add("endfooter");
keyword.add("header");
keyword.add("endheader");
keyword.add("center");
keyword.add("rotate");
keyword.add("ref");
@ -207,11 +225,15 @@ public class LanguageDescriptor {
keyword.add("mainframe");
keyword.add("across");
keyword.add("stereotype");
keyword.add("stereotypes");
keyword.add("split");
keyword.add("style");
keyword.add("sprite");
keyword.add("circle");
keyword.add("circles");
keyword.add("circled");
keyword.add("empty");
keyword.add("member");
keyword.add("members");
keyword.add("description");
keyword.add("true");
@ -224,8 +246,16 @@ public class LanguageDescriptor {
keyword.add("dotted");
keyword.add("dashed");
keyword.add("bold");
keyword.add("map");
keyword.add("together");
keyword.add("attribute");
keyword.add("attributes");
keyword.add("field");
keyword.add("fields");
keyword.add("method");
keyword.add("methods");
keyword.add("public");
keyword.add("private");
keyword.add("protected");
preproc.add("!exit");
preproc.add("!include");