|
10 | 10 | // See the License for the specific language governing permissions and
|
11 | 11 | // limitations under the License.
|
12 | 12 |
|
13 |
| -/// This module defines |
14 |
| -/// 1) a list of constants for every keyword that |
15 |
| -/// can appear in [Word::keyword]: |
16 |
| -/// pub const KEYWORD = "KEYWORD" |
17 |
| -/// 2) an `ALL_KEYWORDS` array with every keyword in it |
18 |
| -/// This is not a list of *reserved* keywords: some of these can be |
19 |
| -/// parsed as identifiers if the parser decides so. This means that |
20 |
| -/// new keywords can be added here without affecting the parse result. |
21 |
| -/// |
22 |
| -/// As a matter of fact, most of these keywords are not used at all |
23 |
| -/// and could be removed. |
24 |
| -/// 3) a `RESERVED_FOR_TABLE_ALIAS` array with keywords reserved in a |
25 |
| -/// "table alias" context. |
| 13 | +//! This module defines |
| 14 | +//! 1) a list of constants for every keyword that |
| 15 | +//! can appear in [Word::keyword]: |
| 16 | +//! pub const KEYWORD = "KEYWORD" |
| 17 | +//! 2) an `ALL_KEYWORDS` array with every keyword in it |
| 18 | +//! This is not a list of *reserved* keywords: some of these can be |
| 19 | +//! parsed as identifiers if the parser decides so. This means that |
| 20 | +//! new keywords can be added here without affecting the parse result. |
| 21 | +//! |
| 22 | +//! As a matter of fact, most of these keywords are not used at all |
| 23 | +//! and could be removed. |
| 24 | +//! 3) a `RESERVED_FOR_TABLE_ALIAS` array with keywords reserved in a |
| 25 | +//! "table alias" context. |
| 26 | +
|
26 | 27 | #[cfg(feature = "serde")]
|
27 | 28 | use serde::{Deserialize, Serialize};
|
28 | 29 |
|
@@ -59,9 +60,7 @@ macro_rules! define_keywords {
|
59 | 60 | pub const ALL_KEYWORDS: &[&str] = &[
|
60 | 61 | $($ident),*
|
61 | 62 | ];
|
62 |
| - |
63 | 63 | };
|
64 |
| - |
65 | 64 | }
|
66 | 65 |
|
67 | 66 | // The following keywords should be sorted to be able to match using binary search
|
|
0 commit comments