Get the comment token for the language.
(&self)
| 77 | |
| 78 | /// Get the comment token for the language. |
| 79 | pub fn comment_token(&self) -> &'static str { |
| 80 | match self { |
| 81 | Language::Rust => "//", |
| 82 | Language::Isle => ";;", |
| 83 | } |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | /// Collect source code to be written to a file and keep track of indentation. |