IsCompoundKeyword checks if a string is a compound keyword
(s string)
| 18 | |
| 19 | // IsCompoundKeyword checks if a string is a compound keyword |
| 20 | func (k *Keywords) IsCompoundKeyword(s string) bool { |
| 21 | _, ok := k.CompoundKeywords[s] |
| 22 | return ok |
| 23 | } |
| 24 | |
| 25 | // GetCompoundKeywordType returns the token type for a compound keyword |
| 26 | func (k *Keywords) GetCompoundKeywordType(s string) (models.TokenType, bool) { |
no outgoing calls