-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(DOCSP-44543): Add support for missing Drivers languages (#151)
* Add support for missing Drivers languages * Add support for both PHP comment types * No joy for Jupyter Notebooks
- Loading branch information
Showing
23 changed files
with
156 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#include <stdio.h> | ||
int main() { | ||
printf("Hello, World!"); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import "fmt" | ||
|
||
func main() { | ||
fmt.Println("hello world") | ||
} | ||
|
4 changes: 4 additions & 0 deletions
4
integrationTests/snip/expected/sample.snippet.multi-line-block-comment.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/* | ||
* Here's some block comment on multiple lines. | ||
*/ | ||
auto something = SomeClass::state::something; |
4 changes: 4 additions & 0 deletions
4
integrationTests/snip/expected/sample.snippet.php-octothorp-test.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Here's a comment with an octothorp | ||
<?php | ||
echo "Have an octothorpe! #"; | ||
?> |
4 changes: 4 additions & 0 deletions
4
integrationTests/snip/expected/sample.snippet.php-slash-test.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// Here's a comment with slashes | ||
<?php | ||
echo "Fun with PHP!"; | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?php | ||
echo "Hello World!"; | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
print("This line will be printed.") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
puts "Hello World" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
fn main() { | ||
println!("Hello World!"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
object Hello { | ||
def main(args: Array[String]) = { | ||
println("Hello, world") | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
integrationTests/snip/expected/sample.snippet.scala-test.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
object Hello { | ||
def main(args: Array[String]) = { | ||
println("Hello, world") | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
integrationTests/snip/expected/sample.snippet.single-line-block-comment.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/* Here's some block comment on a single line */ | ||
auto something = SomeClass::state::something; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// :snippet-start: c-test | ||
#include <stdio.h> | ||
int main() { | ||
// printf() displays the string inside quotation // :remove: | ||
printf("Hello, World!"); | ||
return 0; | ||
} | ||
// :snippet-end: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package main | ||
|
||
// :snippet-start: go-test | ||
import "fmt" | ||
|
||
func main() { | ||
// To FMT or LOG, *that* is the question // :remove: | ||
fmt.Println("hello world") | ||
} | ||
|
||
// :snippet-end: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// :snippet-start: php-test | ||
# Sometimes comments start with octothorps :remove: | ||
<?php | ||
echo "Hello World!"; | ||
?> | ||
// :snippet-end: | ||
|
||
# :snippet-start: php-octothorp-test | ||
# Here's a comment with an octothorp | ||
#And one without a space just for testing :remove: | ||
<?php | ||
echo "Have an octothorpe! #"; | ||
?> | ||
# :snippet-end: | ||
|
||
// :snippet-start: php-slash-test | ||
// Here's a comment with slashes | ||
//and one without a space just because :remove: | ||
<?php | ||
echo "Fun with PHP!"; | ||
?> | ||
// :snippet-end: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# :snippet-start: python-test | ||
# My comment is the coolest, for real. :remove: | ||
print("This line will be printed.") | ||
# :snippet-end: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# :snippet-start: ruby-test | ||
# Here's a comment :remove: | ||
puts "Hello World" | ||
# :snippet-end: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// :snippet-start: rust-test | ||
fn main() { | ||
// Print text to the console. This is a boring comment. :remove: | ||
println!("Hello World!"); | ||
} | ||
// :snippet-end: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// :snippet-start: sc-test | ||
object Hello { | ||
// Arrrrrrrrrrgs! :remove: | ||
def main(args: Array[String]) = { | ||
println("Hello, world") | ||
} | ||
} | ||
// :snippet-end: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// :snippet-start: scala-test | ||
object Hello { | ||
// Why do we pass arguments - that sounds confrontational. :remove: | ||
def main(args: Array[String]) = { | ||
println("Hello, world") | ||
} | ||
} | ||
// :snippet-end: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters