Add editorconfig
This commit is contained in:
parent
b51cf5c04e
commit
ea76c5ecc6
5 changed files with 15 additions and 5 deletions
11
.editorconfig
Normal file
11
.editorconfig
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
# https://editorconfig.org
|
||||||
|
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
end_of_line = lf
|
||||||
|
insert_final_newline = true
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
charset = utf-8
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 4
|
||||||
|
|
@ -6,8 +6,8 @@ use serde::{Deserialize, Serialize};
|
||||||
use super::merge_context::MergeContext;
|
use super::merge_context::MergeContext;
|
||||||
use crate::operation_transformation::Operation;
|
use crate::operation_transformation::Operation;
|
||||||
|
|
||||||
// CursorPosition is a wrapper around usize to represent the position of an
|
// CursorPosition represents the position of an identifiable cursor in a text
|
||||||
// identifiable cursor in a text document based on the character index.
|
// document based on its (UTF-8) character index.
|
||||||
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
||||||
#[derive(Debug, Clone, PartialEq, Default)]
|
#[derive(Debug, Clone, PartialEq, Default)]
|
||||||
pub struct CursorPosition {
|
pub struct CursorPosition {
|
||||||
|
|
|
||||||
|
|
@ -2,4 +2,3 @@ parent: marketplace
|
||||||
left: market| place
|
left: market| place
|
||||||
right: market|space
|
right: market|space
|
||||||
expected: market| placemarket|space
|
expected: market| placemarket|space
|
||||||
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
parent: Please remember to bring your laptop and charger
|
parent: Please remember to bring your laptop and charger
|
||||||
left: Please remember to bring your laptop|
|
left: Please remember to bring your laptop|
|
||||||
right: Please remember to bring your |new |laptop and charger
|
right: Please remember to bring your |new |laptop and charger
|
||||||
expected: Please remember to bring your |new |laptop|
|
expected: Please remember to bring your |new |laptop|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
parent: Send the report to the team
|
parent: Send the report to the team
|
||||||
left: Send the |detailed |report to the |entire |team
|
left: Send the |detailed |report to the |entire |team
|
||||||
right: Send the |quarterly |detailed |report to the team
|
right: Send the |quarterly |detailed |report to the team
|
||||||
expected: Send the |detailed |quarterly |detailed ||report to the |entire |team
|
expected: Send the |detailed |quarterly |detailed ||report to the |entire |team
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue