Determine if a [`FileLocation`] comment should be appended to a line.
(&self, line: &str)
| 69 | impl Language { |
| 70 | /// Determine if a [`FileLocation`] comment should be appended to a line. |
| 71 | pub fn should_append_location(&self, line: &str) -> bool { |
| 72 | match self { |
| 73 | Language::Rust => !line.ends_with(['{', '}']), |
| 74 | Language::Isle => true, |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | /// Get the comment token for the language. |
| 79 | pub fn comment_token(&self) -> &'static str { |