diff options
| author | mo khan <mo@mokhan.ca> | 2021-05-09 19:56:25 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2021-05-09 19:56:25 -0600 |
| commit | a7f40094fb2f305ec4d05403070e81edda2e350e (patch) | |
| tree | 9aaeb1f16f1be3bcb5e1fc849da1e9546cdbc66b /spec | |
| parent | 90299819eec8848ca52b57a45c14f6eff8b58772 (diff) | |
feat: ignore multi-line comments
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/unit/terraform/parsers/hcl_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/unit/terraform/parsers/hcl_spec.rb b/spec/unit/terraform/parsers/hcl_spec.rb index 26172e1..fd97a64 100644 --- a/spec/unit/terraform/parsers/hcl_spec.rb +++ b/spec/unit/terraform/parsers/hcl_spec.rb @@ -16,6 +16,11 @@ RSpec.describe Spandx::Terraform::Parsers::Hcl do version = "3.39.0" constraints = "~> 3.27" } + + /* + This is a multi-line comment + that spans multiple lines + */ HCL end @@ -110,4 +115,5 @@ RSpec.describe Spandx::Terraform::Parsers::Hcl do specify { expect(parser.space).to parse(' ') } specify { expect(parser.comment).to parse('# This file is maintained automatically by "terraform init".') } specify { expect(parser.comment).to parse('# Manual edits may be lost in future updates.') } + specify { expect(parser.comment).to parse('// This file is maintained automatically by "terraform init".') } end |
