Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix source highlighting in user defined type macros docs #4169

Merged
merged 1 commit into from
Oct 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ See examples below for the concrete generated code.

Consider the following complete example:

```cpp hl_lines="21"
```cpp hl_lines="22"
--8<-- "examples/nlohmann_define_type_intrusive_macro.cpp"
```

Expand All @@ -80,15 +80,15 @@ See examples below for the concrete generated code.

The macro is equivalent to:

```cpp hl_lines="21 22 23 24 25 26 27 28 29 30 31 32 33"
```cpp hl_lines="22 23 24 25 26 27 28 29 30 31 32 33 34"
--8<-- "examples/nlohmann_define_type_intrusive_explicit.cpp"
```

??? example "Example (2): NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_DEFAULT"

Consider the following complete example:

```cpp hl_lines="21"
```cpp hl_lines="22"
--8<-- "examples/nlohmann_define_type_intrusive_with_default_macro.cpp"
```

Expand All @@ -108,7 +108,7 @@ See examples below for the concrete generated code.

The macro is equivalent to:

```cpp hl_lines="21 22 23 24 25 26 27 28 29 30 31 32 33 34"
```cpp hl_lines="21 22 23 24 25 26 27 28 29 30 31 32 33 34 35"
--8<-- "examples/nlohmann_define_type_intrusive_with_default_explicit.cpp"
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ See examples below for the concrete generated code.

Consider the following complete example:

```cpp hl_lines="15"
```cpp hl_lines="16"
--8<-- "examples/nlohmann_define_type_non_intrusive_macro.cpp"
```

Expand All @@ -80,15 +80,15 @@ See examples below for the concrete generated code.

The macro is equivalent to:

```cpp hl_lines="15 16 17 18 19 20 21 22 23 24 25 26 27"
```cpp hl_lines="16 17 18 19 20 21 22 23 24 25 26 27 28"
--8<-- "examples/nlohmann_define_type_non_intrusive_explicit.cpp"
```

??? example "Example (2): NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE_WITH_DEFAULT"

Consider the following complete example:

```cpp hl_lines="20"
```cpp hl_lines="21"
--8<-- "examples/nlohmann_define_type_non_intrusive_with_default_macro.cpp"
```

Expand All @@ -109,7 +109,7 @@ See examples below for the concrete generated code.

The macro is equivalent to:

```cpp hl_lines="20 21 22 23 24 25 26 27 28 29 30 31 32 33"
```cpp hl_lines="21 22 23 24 25 26 27 28 29 30 31 32 33 34"
--8<-- "examples/nlohmann_define_type_non_intrusive_with_default_explicit.cpp"
```

Expand Down