ffmt 0.2.7__tar.gz → 0.2.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. {ffmt-0.2.7 → ffmt-0.2.8}/Cargo.lock +1 -1
  2. {ffmt-0.2.7 → ffmt-0.2.8}/Cargo.toml +1 -1
  3. {ffmt-0.2.7 → ffmt-0.2.8}/PKG-INFO +1 -1
  4. {ffmt-0.2.7 → ffmt-0.2.8}/pyproject.toml +1 -1
  5. {ffmt-0.2.7 → ffmt-0.2.8}/src/formatter.rs +2 -3
  6. {ffmt-0.2.7 → ffmt-0.2.8}/.github/workflows/ci.yml +0 -0
  7. {ffmt-0.2.7 → ffmt-0.2.8}/.github/workflows/release.yml +0 -0
  8. {ffmt-0.2.7 → ffmt-0.2.8}/.github/workflows/update-readme-version.yml +0 -0
  9. {ffmt-0.2.7 → ffmt-0.2.8}/.gitignore +0 -0
  10. {ffmt-0.2.7 → ffmt-0.2.8}/.pre-commit-hooks.yaml +0 -0
  11. {ffmt-0.2.7 → ffmt-0.2.8}/LICENSE +0 -0
  12. {ffmt-0.2.7 → ffmt-0.2.8}/README.md +0 -0
  13. {ffmt-0.2.7 → ffmt-0.2.8}/action.yml +0 -0
  14. {ffmt-0.2.7 → ffmt-0.2.8}/src/align.rs +0 -0
  15. {ffmt-0.2.7 → ffmt-0.2.8}/src/case_norm.rs +0 -0
  16. {ffmt-0.2.7 → ffmt-0.2.8}/src/classifier.rs +0 -0
  17. {ffmt-0.2.7 → ffmt-0.2.8}/src/cli.rs +0 -0
  18. {ffmt-0.2.7 → ffmt-0.2.8}/src/config.rs +0 -0
  19. {ffmt-0.2.7 → ffmt-0.2.8}/src/keyword_norm.rs +0 -0
  20. {ffmt-0.2.7 → ffmt-0.2.8}/src/lib.rs +0 -0
  21. {ffmt-0.2.7 → ffmt-0.2.8}/src/lsp.rs +0 -0
  22. {ffmt-0.2.7 → ffmt-0.2.8}/src/main.rs +0 -0
  23. {ffmt-0.2.7 → ffmt-0.2.8}/src/reader.rs +0 -0
  24. {ffmt-0.2.7 → ffmt-0.2.8}/src/scope.rs +0 -0
  25. {ffmt-0.2.7 → ffmt-0.2.8}/src/unicode.rs +0 -0
  26. {ffmt-0.2.7 → ffmt-0.2.8}/src/whitespace.rs +0 -0
  27. {ffmt-0.2.7 → ffmt-0.2.8}/tests/case_norm.rs +0 -0
  28. {ffmt-0.2.7 → ffmt-0.2.8}/tests/classifier.rs +0 -0
  29. {ffmt-0.2.7 → ffmt-0.2.8}/tests/config_integration.rs +0 -0
  30. {ffmt-0.2.7 → ffmt-0.2.8}/tests/fixtures/blank_lines.expected.fpp +0 -0
  31. {ffmt-0.2.7 → ffmt-0.2.8}/tests/fixtures/blank_lines.input.fpp +0 -0
  32. {ffmt-0.2.7 → ffmt-0.2.8}/tests/fixtures/call_block.expected.fpp +0 -0
  33. {ffmt-0.2.7 → ffmt-0.2.8}/tests/fixtures/call_block.input.fpp +0 -0
  34. {ffmt-0.2.7 → ffmt-0.2.8}/tests/fixtures/directives.expected.fpp +0 -0
  35. {ffmt-0.2.7 → ffmt-0.2.8}/tests/fixtures/directives.input.fpp +0 -0
  36. {ffmt-0.2.7 → ffmt-0.2.8}/tests/fixtures/doxygen_spacing.expected.fpp +0 -0
  37. {ffmt-0.2.7 → ffmt-0.2.8}/tests/fixtures/doxygen_spacing.input.fpp +0 -0
  38. {ffmt-0.2.7 → ffmt-0.2.8}/tests/fixtures/fypp.expected.fpp +0 -0
  39. {ffmt-0.2.7 → ffmt-0.2.8}/tests/fixtures/fypp.input.fpp +0 -0
  40. {ffmt-0.2.7 → ffmt-0.2.8}/tests/fixtures/simple.expected.fpp +0 -0
  41. {ffmt-0.2.7 → ffmt-0.2.8}/tests/fixtures/simple.input.fpp +0 -0
  42. {ffmt-0.2.7 → ffmt-0.2.8}/tests/integration.rs +0 -0
  43. {ffmt-0.2.7 → ffmt-0.2.8}/tests/reader.rs +0 -0
  44. {ffmt-0.2.7 → ffmt-0.2.8}/tests/scope.rs +0 -0
  45. {ffmt-0.2.7 → ffmt-0.2.8}/tests/whitespace.rs +0 -0
@@ -156,7 +156,7 @@ checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
156
156
 
157
157
  [[package]]
158
158
  name = "ffmt"
159
- version = "0.2.7"
159
+ version = "0.2.8"
160
160
  dependencies = [
161
161
  "clap",
162
162
  "ignore",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "ffmt"
3
- version = "0.2.7"
3
+ version = "0.2.8"
4
4
  edition = "2021"
5
5
  description = "A fast, configurable Fortran formatter with Fypp, Doxygen, and OpenACC/OpenMP support"
6
6
  license = "MIT"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ffmt
3
- Version: 0.2.7
3
+ Version: 0.2.8
4
4
  Classifier: Development Status :: 4 - Beta
5
5
  Classifier: Intended Audience :: Developers
6
6
  Classifier: Intended Audience :: Science/Research
@@ -4,7 +4,7 @@ build-backend = "maturin"
4
4
 
5
5
  [project]
6
6
  name = "ffmt"
7
- version = "0.2.7"
7
+ version = "0.2.8"
8
8
  description = "A fast, configurable Fortran formatter with Fypp, Doxygen, and OpenACC/OpenMP support"
9
9
  license = { text = "MIT" }
10
10
  requires-python = ">=3.8"
@@ -1239,10 +1239,9 @@ fn ensure_two_spaces_before_inline_comment(lines: &[String]) -> Vec<String> {
1239
1239
  } else if bytes[i] == b'!' {
1240
1240
  // Found inline comment. Check spacing before it.
1241
1241
  if i == 0 { return line.clone(); } // standalone comment
1242
- // Skip directives (!$acc, !$omp) and Doxygen handled by alignment (!<, !!<, !>)
1242
+ // Skip directives (!$acc, !$omp), standalone Doxygen (!>), and !! continuations
1243
1243
  let rest = &line[i..];
1244
- if rest.starts_with("!$") || rest.starts_with("!<")
1245
- || rest.starts_with("!>") || rest.starts_with("!!") {
1244
+ if rest.starts_with("!$") || rest.starts_with("!>") || rest.starts_with("!!") {
1246
1245
  return line.clone();
1247
1246
  }
1248
1247
  // Count spaces before the `!`
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes